fixed subtitle for event-types (#1247)
parent
dd48749f42
commit
8d1d3fcc7a
|
@ -443,7 +443,7 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
|
||||||
centered
|
centered
|
||||||
title={t("event_type_title", { eventTypeTitle: eventType.title })}
|
title={t("event_type_title", { eventTypeTitle: eventType.title })}
|
||||||
heading={
|
heading={
|
||||||
<div className="relative -mb-2 group cursor-pointer" onClick={() => setEditIcon(false)}>
|
<div className="relative group cursor-pointer" onClick={() => setEditIcon(false)}>
|
||||||
{editIcon ? (
|
{editIcon ? (
|
||||||
<>
|
<>
|
||||||
<h1
|
<h1
|
||||||
|
@ -454,16 +454,18 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
|
||||||
<PencilIcon className="-mt-1 ml-1 inline w-4 h-4 text-gray-700 group-hover:text-gray-500" />
|
<PencilIcon className="-mt-1 ml-1 inline w-4 h-4 text-gray-700 group-hover:text-gray-500" />
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<input
|
<div style={{ marginBottom: -11 }}>
|
||||||
type="text"
|
<input
|
||||||
autoFocus
|
type="text"
|
||||||
style={{ top: -6, fontSize: 22 }}
|
autoFocus
|
||||||
required
|
style={{ top: -6, fontSize: 22 }}
|
||||||
className="w-full relative pl-0 h-10 text-gray-900 bg-transparent border-none cursor-pointer focus:text-black hover:text-gray-700 focus:ring-0 focus:outline-none"
|
required
|
||||||
placeholder={t("quick_chat")}
|
className="w-full relative pl-0 h-10 text-gray-900 bg-transparent border-none cursor-pointer focus:text-black hover:text-gray-700 focus:ring-0 focus:outline-none"
|
||||||
{...formMethods.register("title")}
|
placeholder={t("quick_chat")}
|
||||||
defaultValue={eventType.title}
|
{...formMethods.register("title")}
|
||||||
/>
|
defaultValue={eventType.title}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue