Fix scroll shift caused by fetch-all-replies alerts (#36807)

This commit is contained in:
diondiondion 2025-11-10 16:33:56 +01:00 committed by GitHub
parent 9a42d00c12
commit 400943cb4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 10 deletions

View File

@ -295,7 +295,7 @@ export const RefreshController: React.FC<{
if (loadingState === 'loading') {
return (
<div
className='load-more load-gap'
className='load-more load-more--large'
aria-busy
aria-live='polite'
aria-label={intl.formatMessage(messages.loadingInitial)}

View File

@ -3181,20 +3181,21 @@ a.account__display-name {
}
.column__alert {
--alert-height: 54px;
position: sticky;
bottom: 0;
z-index: 10;
box-sizing: border-box;
display: grid;
grid-template-rows: minmax(var(--alert-height), max-content);
align-items: end;
width: 100%;
max-width: 360px;
padding: 1rem;
margin: auto auto 0;
overflow: clip;
&:empty {
padding: 0;
}
pointer-events: none;
@media (max-width: #{$mobile-menu-breakpoint - 1}) {
// Compensate for mobile menubar
@ -3205,6 +3206,7 @@ a.account__display-name {
// Make all nested alerts occupy the same space
// rather than stack
grid-area: 1 / 1;
pointer-events: initial;
}
}
@ -4484,13 +4486,19 @@ a.status-card {
box-sizing: border-box;
text-decoration: none;
&:hover {
background: var(--on-surface-color);
&--large {
padding-block: 32px;
}
&:focus-visible {
outline: 2px solid $ui-button-focus-outline-color;
outline-offset: -2px;
&:is(button) {
&:hover {
background: var(--on-surface-color);
}
&:focus-visible {
outline: 2px solid $ui-button-focus-outline-color;
outline-offset: -2px;
}
}
.icon {