fix(ui): use shadow-lg-border-base on read-only comment popovers and align label spacing

This commit is contained in:
David Hill
2026-01-24 05:45:04 +00:00
parent 31f80a45af
commit 40ab6ac862
2 changed files with 3 additions and 3 deletions

View File

@@ -2030,7 +2030,7 @@ export default function Page() {
<Icon name="comment" size="small" style={{ color: "var(--white)" }} /> <Icon name="comment" size="small" style={{ color: "var(--white)" }} />
</button> </button>
<Show when={openedComment() === comment.id}> <Show when={openedComment() === comment.id}>
<div class="absolute top-[calc(100%+4px)] right-[-8px] z-40 min-w-[200px] max-w-[320px] rounded-[14px] bg-surface-raised-stronger-non-alpha border border-border-base p-3"> <div class="absolute top-[calc(100%+4px)] right-[-8px] z-40 min-w-[200px] max-w-[320px] rounded-[14px] bg-surface-raised-stronger-non-alpha shadow-lg-border-base p-3">
<div class="flex flex-col gap-1.5"> <div class="flex flex-col gap-1.5">
<div class="text-14-regular text-text-strong whitespace-pre-wrap"> <div class="text-14-regular text-text-strong whitespace-pre-wrap">
{comment.comment} {comment.comment}
@@ -2081,7 +2081,7 @@ export default function Page() {
}} }}
/> />
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<div class="text-12-medium text-text-weak ml-2"> <div class="text-12-medium text-text-weak ml-1">
Commenting on {commentLabel(range())} Commenting on {commentLabel(range())}
</div> </div>
<div class="flex-1" /> <div class="flex-1" />

View File

@@ -84,7 +84,7 @@
max-width: min(320px, calc(100vw - 48px)); max-width: min(320px, calc(100vw - 48px));
border-radius: 14px; border-radius: 14px;
background-color: var(--surface-raised-stronger-non-alpha); background-color: var(--surface-raised-stronger-non-alpha);
border: 1px solid var(--border-base); box-shadow: var(--shadow-lg-border-base);
padding: 12px; padding: 12px;
} }