fix(web): show the open note in the list

Drop the white sheet behind the memo list so the selected row can use the shared selection surface.
This commit is contained in:
tianma-if committed 2026-09-25 21:32:18 +08:00
1 parent 838fa97847
commit 2d13429f7a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -337,7 +337,7 @@ export const MemoCard = ({
isLast && "lg:border-b-transparent",
listDensity === "compact" ? "rounded-md shadow-none" : "rounded-lg shadow-[0_4px_16px_rgba(15,23,42,0.045)] lg:shadow-none",
!selectionMode && selected
? "lg:border-[var(--workspace-divider)] lg:bg-[var(--workspace-editor)] lg:shadow-[0_1px_2px_rgba(15,23,32,0.06)]"
? "edgeever-workspace-selection border-[var(--workspace-divider)] bg-workspace-selection lg:border-[var(--workspace-divider)] lg:bg-workspace-selection"
: checked
? "bg-slate-50 ring-1 ring-slate-200 lg:border-[var(--workspace-divider)] lg:bg-[var(--workspace-selection)] lg:ring-0"
: "active:bg-slate-50 lg:hover:bg-white/70"
+1 -1
View File
@@ -1452,7 +1452,7 @@ export const MemoListPane = ({
)}
</div>
) : (
<div className="lg:overflow-hidden lg:rounded-sm lg:border-y lg:border-slate-200 lg:bg-card">
<div className="lg:overflow-hidden">
<div className="relative w-full" style={{ height: `${memoListVirtualizer.getTotalSize()}px` }}>
{memoListVirtualizer.getVirtualItems().map((virtualRow) => {
const memo = memos[virtualRow.index];