fix: improve notification stacking and text wrapping
This commit is contained in:
1 parent
58b40fa340
commit
c7a3796f26
2 files changed
+30
-4
No files matched your search
@@ -1050,16 +1050,18 @@ html[data-wide-layout='true'] .sc-header {
|
||||
z-index: 200;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
display: grid;
|
||||
gap: 0.625rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: min(100% - 2rem, 24rem);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.sc-notification {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 0.625rem;
|
||||
min-width: 0;
|
||||
padding: 0.875rem 1rem;
|
||||
color: var(--sc-fg);
|
||||
background: var(--sc-surface-raised);
|
||||
@@ -1069,6 +1071,15 @@ html[data-wide-layout='true'] .sc-header {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.sc-notification + .sc-notification {
|
||||
margin-block-start: -0.875rem;
|
||||
}
|
||||
|
||||
.sc-notification:hover,
|
||||
.sc-notification:focus-within {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.sc-notification-icon {
|
||||
flex: 0 0 auto;
|
||||
margin-top: 0.125rem;
|
||||
@@ -1093,9 +1104,11 @@ html[data-wide-layout='true'] .sc-header {
|
||||
|
||||
.sc-notification-message {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.45;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.sc-notification-close {
|
||||
|
||||
Reference in new issue
Block a user