From a1e0d03fccb48251398e649408ecea0d350c5d04 Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Wed, 2 Oct 2024 17:37:02 -0700 Subject: [PATCH] Better handle background color for dir preview table (#944) --- frontend/app/view/preview/directorypreview.less | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/frontend/app/view/preview/directorypreview.less b/frontend/app/view/preview/directorypreview.less index 3e04918dc..506c4778c 100644 --- a/frontend/app/view/preview/directorypreview.less +++ b/frontend/app/view/preview/directorypreview.less @@ -15,15 +15,25 @@ display: flex; flex-direction: column; - &:not([data-scroll-height="0"]) .dir-table-head { - background: rgba(10, 10, 10, 0.5); + &:not([data-scroll-height="0"]) .dir-table-head::after { + background: rgb(from var(--block-bg-color) r g b / 0.2); + } + + .dir-table-head::after { + content: ""; + z-index: -1; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; backdrop-filter: blur(4px); } .dir-table-head { position: sticky; top: 0; z-index: 10; - width: fit-content; + width: 100%; border-bottom: 1px solid var(--border-color); .dir-table-head-row {