Skip to content

Commit ad62885

Browse files
authored
fix: z-index inside attachment preview (#316)
### 🎯 Goal This PR affects both Angular and React (I tested with the React vite example app). Issue: the delete and retry icons had higher z-index than the channel list menu, causing a visual glitch <img width="652" alt="Screenshot 2024-10-03 at 10 19 27" src="https://github.com/user-attachments/assets/bff6e0e2-b921-4f2f-866a-4fc8069fde1d">
1 parent 387aa96 commit ad62885

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/v2/styles/AttachmentPreviewList/AttachmentPreviewList-layout.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
top: calc(var(--str-chat__spacing-px) * 2);
115115
inset-inline-end: calc(var(--str-chat__spacing-px) * 2);
116116
cursor: pointer;
117-
z-index: 1;
117+
z-index: 0;
118118

119119
svg {
120120
width: calc(var(--str-chat__spacing-px) * 24);
@@ -128,7 +128,7 @@
128128
@include utils.unset-button(unset);
129129
inset-inline-start: 0;
130130
cursor: pointer;
131-
z-index: 1;
131+
z-index: 0;
132132
}
133133
}
134134

0 commit comments

Comments
 (0)