Skip to content

Build your personal knowledge base with Trilium Notes

refactor(file): drop the font preview's section headings

Elian Doran2e6babaea0c0
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index 8b74588d74..e63858a0de 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -1614,9 +1614,7 @@
"pangram": "The quick brown fox jumps over the lazy dog",
"specimen_placeholder": "Type to preview your own text…",
"size": "Preview size",
- "size_pixels": "{{size}} px",
- "sizes": "Sizes",
- "characters": "Characters"
+ "size_pixels": "{{size}} px"
},
"media": {
"play": "Play",
diff --git a/apps/client/src/widgets/type_widgets/file/FontPreview.css b/apps/client/src/widgets/type_widgets/file/FontPreview.css
index 3afb0e4cd2..9ce6ee0dab 100644
--- a/apps/client/src/widgets/type_widgets/file/FontPreview.css
+++ b/apps/client/src/widgets/type_widgets/file/FontPreview.css
@@ -38,14 +38,6 @@
margin-bottom: 24px;
}
- .font-preview-heading {
- color: var(--muted-text-color);
- font-size: 0.85em;
- text-transform: uppercase;
- letter-spacing: 0.06em;
- margin-bottom: 10px;
- }
-
.font-preview-ladder {
display: grid;
grid-template-columns: auto 1fr;
diff --git a/apps/client/src/widgets/type_widgets/file/FontPreview.tsx b/apps/client/src/widgets/type_widgets/file/FontPreview.tsx
index 238577af39..47f5bd1473 100644
--- a/apps/client/src/widgets/type_widgets/file/FontPreview.tsx
+++ b/apps/client/src/widgets/type_widgets/file/FontPreview.tsx
@@ -77,7 +77,6 @@ export default function FontPreview({ note, blob }: FontPreviewProps) {
<div className="font-preview-specimen" style={{ "--font-preview-specimen-size": `${size}px` }}>{text}</div>
- <div className="font-preview-heading">{t("font_preview.sizes")}</div>
<div className="font-preview-ladder">
{LADDER_SIZES.map((ladderSize) => (
<Fragment key={ladderSize}>
@@ -87,7 +86,6 @@ export default function FontPreview({ note, blob }: FontPreviewProps) {
))}
</div>
- <div className="font-preview-heading">{t("font_preview.characters")}</div>
<div className="font-preview-characters">
<div>{UPPERCASE}</div>
<div>{LOWERCASE}</div>