Skip to content

Build your personal knowledge base with Trilium Notes

content scrolling

azivnerf8d32d64f5e1
diff --git a/src/public/stylesheets/mobile.css b/src/public/stylesheets/mobile.css
index 03ef85ba77..e30d5742e5 100644
--- a/src/public/stylesheets/mobile.css
+++ b/src/public/stylesheets/mobile.css
@@ -1,10 +1,14 @@
html, body {
- height:100vh;
- width:100vw;
+ height: 100%;
+ width: 100%;
margin: 0;
padding: 0;
}
+#container-row {
+ height: 100%;
+}
+
#tree {
font-size: larger;
width: 100vw;
@@ -13,12 +17,30 @@ html, body {
}
#detail {
- padding: 10px 20px 10px 35px;
+ padding: 20px 20px 10px 35px;
+ height: 100%;
+ flex-direction: column;
+}
+
+#detail-content {
+ position: relative;
+ overflow: auto;
+ flex-direction: column;
+ height: 100%;
}
-#close-detail-button {
- padding-left: 1em;
- padding-right: 1em;
+#note-title-row {
+ display: flex;
+ padding-right: 10px;
+}
+
+.action-button {
+ background: none;
+ border: none;
+ cursor: pointer;
+ font-size: 1.5em;
+ padding-left: 0.5em;
+ padding-right: 0.5em;
}
.fancytree-custom-icon {
diff --git a/src/views/mobile.ejs b/src/views/mobile.ejs
index d2239b7b8c..a97e34dbad 100644
--- a/src/views/mobile.ejs
+++ b/src/views/mobile.ejs
@@ -5,19 +5,21 @@
<title>Trilium Notes</title>
</head>
<body>
-<div class="row">
+<div class="row" id="container-row">
<div id="tree" class="d-sm-block d-md-block d-lg-block d-xl-block col-12 col-sm-4 col-md-4 col-lg-4 col-xl-4"></div>
- <div id="detail" class="d-none d-sm-block d-md-block d-lg-block d-xl-block col-12 col-sm-8 col-md-8 col-lg-8">
- <div style="display: flex; padding-left: 10px;">
+ <div id="detail" class="d-none d-sm-flex d-md-flex d-lg-flex d-xl-flex col-12 col-sm-8 col-md-8 col-lg-8">
+ <div id="note-title-row">
+ <button type="button" id="note-menu-button" class="action-button jam jam-align-justify"></button>
+
<input autocomplete="off" value="" id="note-title" class="form-control" tabindex="1">
- <button type="button" id="close-detail-button" class="close d-sm-none d-md-none d-lg-none d-xl-none" aria-label="Close">
+ <button type="button" id="close-detail-button" class="action-button d-sm-none d-md-none d-lg-none d-xl-none" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
- <div style="position: relative;">
+ <div id="detail-content">
<span id="saved-indicator" title="All changes have been saved" class="jam jam-check"></span>
<div id="note-detail-text" class="note-detail-component" tabindex="10000"></div>