+
diff --git a/src/features/dashboard/templates/detail/overview/template-section.tsx b/src/features/dashboard/templates/detail/overview/template-section.tsx
index e3882c326..ac2f19b47 100644
--- a/src/features/dashboard/templates/detail/overview/template-section.tsx
+++ b/src/features/dashboard/templates/detail/overview/template-section.tsx
@@ -1,6 +1,6 @@
'use client'
-import type { ReactNode } from 'react'
+import type { CSSProperties, ReactNode } from 'react'
import type { TemplateDetail } from '@/core/modules/templates/models'
import { getTemplateDisplayName } from '@/features/dashboard/templates/helpers'
import { useClipboard } from '@/lib/hooks/use-clipboard'
@@ -35,8 +35,11 @@ export function TemplateSection({ template, teamSlug }: TemplateSectionProps) {
return (
-
-
+
+
{displayName}
diff --git a/src/styles/theme.css b/src/styles/theme.css
index 67d639654..197762e6f 100644
--- a/src/styles/theme.css
+++ b/src/styles/theme.css
@@ -591,6 +591,19 @@
font-weight: 700 !important;
}
+/* Scales a monospace value down by character count to fit its container's
+ * inline size, avoiding line wrap. Requires `--char-count` and a container
+ * query context (e.g. Tailwind's `@container`). 0.6 ≈ glyph advance per em. */
+@utility prose-value-big-fit {
+ font-size: clamp(
+ 0.9375rem,
+ calc(100cqi / (var(--char-count, 1) * 0.6)),
+ 2rem
+ ) !important;
+ line-height: 1.1 !important;
+ font-weight: 700 !important;
+}
+
/* Loader utilities */
@utility loader {
display: inline-flex;