diff --git a/apps/client/src/ee/template/components/template-picker-modal.module.css b/apps/client/src/ee/template/components/template-picker-modal.module.css index 687feb83..4c5a00b1 100644 --- a/apps/client/src/ee/template/components/template-picker-modal.module.css +++ b/apps/client/src/ee/template/components/template-picker-modal.module.css @@ -1,11 +1,6 @@ .row { position: relative; - display: flex; - align-items: center; - gap: var(--mantine-spacing-sm); - padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm); border-radius: var(--mantine-radius-sm); - width: 100%; @mixin hover { background-color: light-dark( @@ -15,6 +10,15 @@ } } +.pickButton { + display: flex; + align-items: center; + gap: var(--mantine-spacing-sm); + padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm); + border-radius: inherit; + width: 100%; +} + .icon { width: 22px; height: 22px; diff --git a/apps/client/src/ee/template/components/template-picker-modal.tsx b/apps/client/src/ee/template/components/template-picker-modal.tsx index 76c55295..d9fe3238 100644 --- a/apps/client/src/ee/template/components/template-picker-modal.tsx +++ b/apps/client/src/ee/template/components/template-picker-modal.tsx @@ -196,41 +196,39 @@ export default function TemplatePickerModal({ ) : ( filtered.map((tpl) => ( - handlePick(tpl)} - > -
- {tpl.icon ? ( - {tpl.icon} - ) : ( - - )} -
-
{tpl.title}
-
- {tpl.spaceId - ? spaceNamesById.get(tpl.spaceId) ?? t("Space") - : t("Global")} -
+
+ handlePick(tpl)} + > +
+ {tpl.icon ? ( + {tpl.icon} + ) : ( + + )} +
+
{tpl.title}
+
+ {tpl.spaceId + ? spaceNamesById.get(tpl.spaceId) ?? t("Space") + : t("Global")} +
+
- +
)) )}