WebApp: Fix content inaccessibility under header in fullscreen mode (#5628)

This commit is contained in:
Alexander Zinchuk 2025-03-01 17:59:03 +01:00
parent d946547cc3
commit b7b4e4811a
4 changed files with 14 additions and 6 deletions

View File

@ -1635,3 +1635,4 @@
"CollectibleStatusesCategory" = "Collectibles";
"PeerPersonalAccount" = "personal account";
"PeerChannel" = "channel";
"WebAppCollapse" = "Collapse";

View File

@ -302,6 +302,7 @@
padding: 1rem;
padding-inline-end: calc(1rem + var(--scrollbar-width));
justify-content: space-between;
pointer-events: none;
}
.icon {
@ -331,6 +332,7 @@
border-radius: 1rem;
background-color: rgba(0, 0, 0, 0.2);
backdrop-filter: blur(25px);
pointer-events: auto;
&:hover {
background-color: rgba(0, 0, 0, 0.1);

View File

@ -972,14 +972,14 @@ const WebAppModalTabContent: FC<OwnProps & StateProps> = ({
styles.headerButton,
styles.left,
)}
tabIndex={0}
role="button"
aria-label={lang('WebAppCollapse')}
onClick={handleCollapseClick}
>
<Icon
name="down"
className={buildClassName(
styles.icon,
styles.collapseIcon,
)}
onClick={handleCollapseClick}
className={styles.icon}
/>
</div>
<div
@ -987,6 +987,11 @@ const WebAppModalTabContent: FC<OwnProps & StateProps> = ({
styles.headerButton,
styles.right,
)}
tabIndex={0}
role="button"
aria-haspopup="menu"
aria-label={lang('AriaMoreButton')}
onClick={handleShowContextMenu}
>
<Icon
name="more"
@ -994,7 +999,6 @@ const WebAppModalTabContent: FC<OwnProps & StateProps> = ({
styles.icon,
styles.moreIcon,
)}
onClick={handleShowContextMenu}
/>
</div>
</div>

View File

@ -1335,6 +1335,7 @@ export interface LangPair {
'CollectibleStatusesCategory': undefined;
'PeerPersonalAccount': undefined;
'PeerChannel': undefined;
'WebAppCollapse': undefined;
}
export interface LangPairWithVariables<V extends unknown = LangVariable> {