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;
|
z-index: 200;
|
||||||
top: 1rem;
|
top: 1rem;
|
||||||
right: 1rem;
|
right: 1rem;
|
||||||
display: grid;
|
display: flex;
|
||||||
gap: 0.625rem;
|
flex-direction: column;
|
||||||
width: min(100% - 2rem, 24rem);
|
width: min(100% - 2rem, 24rem);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sc-notification {
|
.sc-notification {
|
||||||
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
gap: 0.625rem;
|
gap: 0.625rem;
|
||||||
|
min-width: 0;
|
||||||
padding: 0.875rem 1rem;
|
padding: 0.875rem 1rem;
|
||||||
color: var(--sc-fg);
|
color: var(--sc-fg);
|
||||||
background: var(--sc-surface-raised);
|
background: var(--sc-surface-raised);
|
||||||
@@ -1069,6 +1071,15 @@ html[data-wide-layout='true'] .sc-header {
|
|||||||
pointer-events: auto;
|
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 {
|
.sc-notification-icon {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
margin-top: 0.125rem;
|
margin-top: 0.125rem;
|
||||||
@@ -1093,9 +1104,11 @@ html[data-wide-layout='true'] .sc-header {
|
|||||||
|
|
||||||
.sc-notification-message {
|
.sc-notification-message {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
|
min-width: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
line-height: 1.45;
|
line-height: 1.45;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sc-notification-close {
|
.sc-notification-close {
|
||||||
|
|||||||
+15
-2
@@ -736,16 +736,18 @@ html[data-wide-layout='true'] .sc-header {
|
|||||||
z-index: 200;
|
z-index: 200;
|
||||||
top: 1rem;
|
top: 1rem;
|
||||||
right: 1rem;
|
right: 1rem;
|
||||||
display: grid;
|
display: flex;
|
||||||
gap: 0.625rem;
|
flex-direction: column;
|
||||||
width: min(100% - 2rem, 24rem);
|
width: min(100% - 2rem, 24rem);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sc-notification {
|
.sc-notification {
|
||||||
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
gap: 0.625rem;
|
gap: 0.625rem;
|
||||||
|
min-width: 0;
|
||||||
padding: 0.875rem 1rem;
|
padding: 0.875rem 1rem;
|
||||||
color: var(--sc-fg);
|
color: var(--sc-fg);
|
||||||
background: var(--sc-surface-raised);
|
background: var(--sc-surface-raised);
|
||||||
@@ -755,6 +757,15 @@ html[data-wide-layout='true'] .sc-header {
|
|||||||
pointer-events: auto;
|
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 {
|
.sc-notification-icon {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
margin-top: 0.125rem;
|
margin-top: 0.125rem;
|
||||||
@@ -779,9 +790,11 @@ html[data-wide-layout='true'] .sc-header {
|
|||||||
|
|
||||||
.sc-notification-message {
|
.sc-notification-message {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
|
min-width: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
line-height: 1.45;
|
line-height: 1.45;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sc-notification-close {
|
.sc-notification-close {
|
||||||
|
|||||||
Reference in new issue
Block a user