From 20bf12588739ede69e585bbffc10ea6eea4b26e2 Mon Sep 17 00:00:00 2001 From: Steven Vandevelde Date: Sun, 8 Mar 2026 21:31:26 +0100 Subject: [PATCH] feat(facets): improved your-collection view --- src/facets/you.js | 108 ++++++++++++++++-------------------- src/styles/diffuse/page.css | 32 ++++++++++- 2 files changed, 78 insertions(+), 62 deletions(-) diff --git a/src/facets/you.js b/src/facets/you.js index 6a9eb67c..f0c5e27e 100644 --- a/src/facets/you.js +++ b/src/facets/you.js @@ -34,75 +34,61 @@ effect(() => { keyed( c.id, html` -
  • -
    +
  • +
    +
    + + ${c.name} + +
    +
    +
    + ${c.description?.trim().length + ? unsafeHTML( + marked.parse(c.description, { async: false }), + ) + : nothing} +
    +
    + ${c.uri && !c.html + ? html` + + + Tracking the original URI + + ` + : html` + + + Custom code + + `} +
    +
    +
    + + -
    -
    - ${c.description?.trim().length - ? unsafeHTML( - marked.parse(c.description, { async: false }), - ) - : nothing} -
    -
    - ${c.uri && !c.html - ? html` - - - Tracking the original URI - - ` - : html` - - - Custom code - - `} -
    -
    - - -
  • `, ) diff --git a/src/styles/diffuse/page.css b/src/styles/diffuse/page.css index bf4158a0..a30b0e53 100644 --- a/src/styles/diffuse/page.css +++ b/src/styles/diffuse/page.css @@ -224,10 +224,40 @@ textarea { content: none; } - li { + .grid-item { border: 1px solid var(--border-color); + display: flex; + } + + .grid-item__contents { + flex: 1; padding: var(--space-md); } + + .grid-item__menu { + border-left: 1px solid var(--border-color); + display: flex; + flex-direction: column; + justify-content: space-evenly; + + hr { + background: var(--border-color); + border: 0; + height: 1px; + margin: 0; + padding: 0; + } + } + + .grid-item__menu button, + .grid-item__menu .button { + --button-bg-opacity: 0.3; + align-items: center; + border-radius: 0; + display: flex; + flex: 1; + justify-content: center; + } } /** -- knotmirror 0.0.1