Skip to content

Commit 5f1ce7e

Browse files
committed
feat: prevent highlighting the pinned message metada row
1 parent 44e2eaf commit 5f1ce7e

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

src/components/Message/styling/Message.scss

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -510,11 +510,14 @@
510510
display: flex;
511511
flex-wrap: wrap;
512512
align-items: center;
513-
margin-block-start: var(--str-chat__spacing-0_5);
513+
height: var(--size-24);
514514
color: var(--chat-text-timestamp);
515-
font-size: var(--typography-font-size-xs,);
516-
font-weight: var(--typography-font-weight-regular);
517-
line-height: var(--typography-line-height-tight);
515+
516+
* {
517+
font-size: var(--typography-font-size-xs,);
518+
font-weight: var(--typography-font-weight-regular);
519+
line-height: var(--typography-line-height-tight);
520+
}
518521

519522
.str-chat__message-simple-name {
520523
@include utils.prevent-glitch-text-overflow;
@@ -601,7 +604,15 @@
601604
}
602605

603606
.str-chat__message--pinned {
604-
background-color: var(--str-chat__message-pinned-background-color);
607+
&::before {
608+
content: '';
609+
display: block;
610+
grid-column: 1 / -1;
611+
grid-row: 1 / 6; /* All areas except last row (metadata) */
612+
width: 100%;
613+
min-width: 100%;
614+
background-color: var(--str-chat__message-pinned-background-color);
615+
}
605616
}
606617

607618
/* This rule won't be applied in browsers that don't support :has() */

0 commit comments

Comments
 (0)