Skip to content

Build your personal knowledge base with Trilium Notes

feat(mobile): reduce margins for empty tab

Elian Doran78f492861109
diff --git a/apps/client/src/widgets/type_widgets/Empty.css b/apps/client/src/widgets/type_widgets/Empty.css
index 9f04afbcf4..40f9f02020 100644
--- a/apps/client/src/widgets/type_widgets/Empty.css
+++ b/apps/client/src/widgets/type_widgets/Empty.css
@@ -1,18 +1,20 @@
-.note-detail-empty {
- container-type: size;
- padding-top: 50px;
- min-width: 350px;
-}
-
-.note-detail-empty > * {
- margin-inline: auto;
- max-width: 850px;
- padding-inline: 50px;
-}
+body.desktop {
+ .note-detail-empty {
+ container-type: size;
+ padding-top: 50px;
+ min-width: 350px;
+ }
-@container (max-width: 600px) {
.note-detail-empty > * {
- padding-inline: 20px;
+ margin-inline: auto;
+ max-width: 850px;
+ padding-inline: 50px;
+ }
+
+ @container (max-width: 600px) {
+ .note-detail-empty > * {
+ padding-inline: 20px;
+ }
}
}
@@ -59,4 +61,4 @@
.workspace-icon {
text-align: center;
font-size: 500%;
-}
\ No newline at end of file
+}