This commit is contained in:
Garry Ing 2021-05-02 15:23:23 -04:00
parent 3e40083b50
commit a9bcd1a66c
No known key found for this signature in database
GPG Key ID: 3B379B1F2193CC3E
3 changed files with 6 additions and 2 deletions

View File

@ -4,7 +4,7 @@ layout: default
<div class="ma3 anthony"> <div class="ma3 anthony">
<h1 class="f-5 normal loading">Loading a note</h1> <h1 class="f-5 normal loading">Loading a note</h1>
<div class="rand-notes f1"></div> <div class="rand-notes f1 word-wrap"></div>
</div> </div>
<script> <script>

View File

@ -41,6 +41,10 @@
font-family: "Work Sans Light", sans-serif; font-family: "Work Sans Light", sans-serif;
} }
.word-wrap {
word-break: break-all;
}
// Shadow helper // Shadow helper
.shadow-solid-accent { box-shadow: 2px 2px 10px rgba( var(--foreground-text-rgb), 0.2 ); } .shadow-solid-accent { box-shadow: 2px 2px 10px rgba( var(--foreground-text-rgb), 0.2 ); }

View File

@ -135,7 +135,7 @@ if (typeof window.graphDataIndex !== 'undefined') {
if (counter === 4) { if (counter === 4) {
document.querySelector('.rand-notes').innerHTML = '' document.querySelector('.rand-notes').innerHTML = ''
} }
}, 150) }, 50)
setTimeout(() => { setTimeout(() => {
window.location = randomNode.path window.location = randomNode.path