Skip to content

Build your personal knowledge base with Trilium Notes

feat(mobile): make the title smaller

Elian Doran89db97e97d26
diff --git a/src/public/app/layouts/mobile_layout.ts b/src/public/app/layouts/mobile_layout.ts
index 64e6989986..972ad90efa 100644
--- a/src/public/app/layouts/mobile_layout.ts
+++ b/src/public/app/layouts/mobile_layout.ts
@@ -45,7 +45,7 @@ kbd {
background: none;
border: none;
cursor: pointer;
- font-size: 1.5em;
+ font-size: 1.25em;
padding-left: 0.5em;
padding-right: 0.5em;
color: var(--main-text-color);
diff --git a/src/public/app/widgets/note_title.ts b/src/public/app/widgets/note_title.ts
index 8cb333af9c..9d7656f31e 100644
--- a/src/public/app/widgets/note_title.ts
+++ b/src/public/app/widgets/note_title.ts
@@ -18,13 +18,21 @@ const TPL = `
}
.note-title-widget input.note-title {
- font-size: 180%;
+ font-size: 110%;
border: 0;
margin: 2px 0px;
min-width: 5em;
width: 100%;
}
+ body.mobile .note-title-widget input.note-title {
+ padding: 0;
+ }
+
+ body.desktop .note-title-widget input.note-title {
+ font-size: 180%;
+ }
+
.note-title-widget input.note-title.protected {
text-shadow: 4px 4px 4px var(--muted-text-color);
}