diff --git a/static/css/notes2.css b/static/css/notes2.css index a41afda..05fa6f2 100644 --- a/static/css/notes2.css +++ b/static/css/notes2.css @@ -5,9 +5,6 @@ --thumbnail-width: 300px; --thumbnail-height: 100px; - /* - --colorize: invert(10%) sepia(61%) saturate(5017%) hue-rotate(323deg) brightness(90%) contrast(109%); - */ --colorize: invert(59%) sepia(71%) saturate(3270%) hue-rotate(327deg) brightness(100%) contrast(99%); --line-color: #ccc; @@ -538,8 +535,43 @@ n2-pagehistory { grid-column: 1 / -1; display: grid; - grid-template-columns: min-content 1fr; - grid-gap: 4px 8px; + grid-template-columns: min-content minmax(min-content, max-content) min-content 1fr; + + background-color: var(--line-color); + gap: 1px; + border: 1px solid var(--line-color); + + &>div>div { + padding: 8px 12px; + background-color: #fff; + white-space: nowrap; + + &.index { + text-align: right; + } + + &.updated { + white-space: initial; + } + + .date { + white-space: nowrap; + font-weight: bold; + } + + .time { + white-space: nowrap; + color: #555; + } + + &.name { + white-space: initial; + /*overflow-wrap: anywhere;*/ + word-break: break-all; + color: var(--color1); + + } + } .history-node { display: contents; diff --git a/static/js/node_store.mjs b/static/js/node_store.mjs index d3b95de..033e5eb 100644 --- a/static/js/node_store.mjs +++ b/static/js/node_store.mjs @@ -462,7 +462,7 @@ class NodeHistoryStore extends SimpleNodeStore { .transaction(['nodes', this.storeName], 'readonly') .objectStore(this.storeName) .index('byUUID') - .openCursor(uuid) + .openCursor(uuid, 'prev') let retrieved = 0 let first = true diff --git a/static/js/page_history.mjs b/static/js/page_history.mjs index 434f47b..ee662df 100644 --- a/static/js/page_history.mjs +++ b/static/js/page_history.mjs @@ -1,7 +1,7 @@ import { CustomHTMLElement } from './lib/custom_html_element.mjs' export class N2PageHistory extends CustomHTMLElement { - static PAGESIZE = 10 + static PAGESIZE = 25 static { this.tmpl = document.createElement('template') @@ -24,7 +24,6 @@ export class N2PageHistory extends CustomHTMLElement {
-