diff --git a/src/zotero_kb/templates/index.html b/src/zotero_kb/templates/index.html index 6a0f25e..4ac0629 100644 --- a/src/zotero_kb/templates/index.html +++ b/src/zotero_kb/templates/index.html @@ -156,13 +156,6 @@ .window-shell:not([hidden]) { pointer-events: auto; } - .window-overlay { - position: fixed; - inset: 0; - z-index: 39; - background: rgba(24, 28, 22, 0.42); - border: 0; - } .window-frame { position: fixed; z-index: 40; @@ -256,56 +249,8 @@ min-height: 0; overflow: auto; } - .collection-item { - display: grid; - grid-template-columns: auto minmax(0, 1fr); - gap: 0.75rem; - align-items: center; - padding: 0.75rem 0.9rem; - border: 1px solid var(--line); - border-radius: 14px; - background: rgba(255, 255, 255, 0.72); - } - .collection-item input[type="checkbox"] { - width: auto; - margin: 0; - } - .item-row-body { - display: flex; - align-items: center; - gap: 0.55rem; - min-width: 0; - } - .title-button { - flex: 1; - min-width: 0; - padding: 0; - border: 0; - border-radius: 0; - background: transparent; - color: var(--ink); - text-align: left; - font-weight: 600; - } - .title-button:hover { - transform: none; - background: transparent; - } - .details-button { - width: 2.2rem; - min-width: 2.2rem; - padding: 0.45rem 0; - } - .collection-item .meta { - margin-left: auto; - } - .item-year { - flex: 0 0 auto; - min-width: 3rem; - text-align: right; - } .preview-popover { - position: fixed; + position: absolute; max-width: 28rem; padding: 0.85rem 1rem; border: 1px solid var(--line); @@ -313,7 +258,6 @@ background: rgba(255, 253, 248, 0.98); box-shadow: 0 18px 40px rgba(35, 31, 21, 0.16); color: var(--ink); - z-index: 60; } .tabs { display: flex; @@ -343,18 +287,17 @@ border-right: 0; border-bottom: 1px solid var(--line); } - .window-frame { - width: 100vw; - height: 100vh; - left: 0 !important; - top: 0 !important; - border-radius: 0; + .modal-card { + width: calc(100vw - 1rem); + margin: 0.5rem auto; + max-height: calc(100vh - 1rem); } - .window-body { + .modal-body { grid-template-columns: 1fr; grid-template-rows: minmax(12rem, 1fr) minmax(12rem, 1fr); } - .window-toolbar { + .modal-header, + .modal-action-bar { flex-wrap: wrap; } } @@ -394,35 +337,44 @@ -