mirror of
https://github.com/block/buzz.git
synced 2026-10-30 14:01:37 +00:00
fix(desktop): pad focus message bubble
Co-authored-by: Rizz <302abe414ca6e3134763d2539bfcf145aea2a63fe5f8455204ed602fd40cf381@buzz.block.builderlab.xyz> Signed-off-by: Rizz <302abe414ca6e3134763d2539bfcf145aea2a63fe5f8455204ed602fd40cf381@buzz.block.builderlab.xyz>
This commit is contained in:
@@ -151,7 +151,7 @@ export function CompactMessageSummary({
|
||||
? "text-xs leading-4"
|
||||
: "text-sm leading-relaxed",
|
||||
shouldClampBubble && "relative max-h-36 overflow-hidden",
|
||||
isConversation && "relative",
|
||||
isConversation && "relative pr-4",
|
||||
canOpenMessage &&
|
||||
"group/bubble cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
||||
isCompactPreview
|
||||
|
||||
@@ -399,6 +399,11 @@ test("the same relay post outside a work block keeps its message bubble", async
|
||||
"outside a block a posted message is a destination the reader can open — the bubble stays",
|
||||
);
|
||||
assert.match(bubble.className, /relative/);
|
||||
assert.match(
|
||||
bubble.className,
|
||||
/pr-4/,
|
||||
"focus-mode agent sends keep a full 16px inset on the right",
|
||||
);
|
||||
assert.doesNotMatch(
|
||||
bubble.className,
|
||||
/max-h-36/,
|
||||
|
||||
Reference in New Issue
Block a user