Added hr under title
authorAdam Dullage <redacted>
Sun, 3 Dec 2023 22:04:36 +0000 (22:04 +0000)
committerAdam Dullage <redacted>
Sun, 3 Dec 2023 22:04:36 +0000 (22:04 +0000)
flatnotes/src/components/NoteViewerEditor.vue

index 559d35915b7f90ec2b9919ad89c10652c65e5591..182eeb8c90965466beb4ad4d9b751818cb3d4c31 100644 (file)
     <!-- Loaded -->
     <div v-else class="d-flex flex-column h-100">
       <div
-        class="d-flex justify-content-between flex-wrap-reverse align-items-start mb-2 mb-md-4"
+        class="d-flex justify-content-between flex-wrap-reverse align-items-start mb-2"
       >
         <!-- Title -->
-        <h2 v-if="editMode == false" class="title" :title="currentNote.title">
+        <h1 v-if="editMode == false" class="title" :title="currentNote.title">
           {{ currentNote.title }}
-        </h2>
+        </h1>
         <input
           v-else
           type="text"
-          class="title-input flex-grow-1 mb-0"
+          class="title-input flex-grow-1"
           v-model="titleInput"
           placeholder="Title"
         />
@@ -76,6 +76,9 @@
         </div>
       </div>
 
+      <!-- Horizontal Rule -->
+      <hr v-show="editMode == false" class="hr" />
+
       <!-- Viewer -->
       <div v-if="editMode == false" class="note note-viewer">
         <viewer :initialValue="currentNote.content" :options="viewerOptions" />
 .title-input {
   font-size: 2rem;
   font-weight: bold;
-  line-height: 1.4;
+  line-height: 1.6;
 }
 
 .title {
@@ -141,6 +144,12 @@ pre[class*="language-"] {
   // See #138
   text-shadow: none;
 }
+
+.hr {
+  width: 100%;
+  border-color: var(--colour-border);
+  margin: 0 0 1.25rem 0;
+}
 </style>
 
 <script>
git clone https://git.99rst.org/PROJECT