diff --git a/frontend/src/pages/templates/template.tsx b/frontend/src/pages/templates/template.tsx
index 7faff38b..a26e1e37 100644
--- a/frontend/src/pages/templates/template.tsx
+++ b/frontend/src/pages/templates/template.tsx
@@ -607,8 +607,7 @@ const Template = () => {
const asideContent = useMemo(
() => (
-
-
Preset templates
+
{PRESET_TEMPLATES.map((preset, index) => (
{
open={isAsideOpen}
>
` or an
- // explicit `aria-describedby={undefined}` opt-out;
- // the panel is a simple list of presets with no
- // descriptive sub-text, so the opt-out is honest.
+ // The Sheet body is just a list of presets with no
+ // descriptive sub-text — opt out of the Radix
+ // Description warning explicitly.
aria-describedby={undefined}
- className="w-full max-w-[min(20rem,100vw)] p-2"
+ className="w-full max-w-[min(20rem,100vw)] p-0"
side="right"
>
- {/* Radix dialogs require a title for screen readers.
- The visible h3 lives inside `asideContent` and is
- reused on desktop, where Sheet doesn't render — so
- mirror it here as an sr-only SheetTitle that only
- assistive tech picks up. */}
- Preset templates
+ Preset templates
{asideContent}
@@ -693,7 +686,14 @@ const Template = () => {
isAsideOpen ? 'w-80 border-l sm:w-96' : 'w-0',
)}
>
- {isAsideOpen ? {asideContent}
: null}
+ {isAsideOpen ? (
+
+
+ Preset templates
+
+ {asideContent}
+
+ ) : null}
),
[isMobile, isAsideOpen, asideContent],