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"; "CollectibleStatusesCategory" = "Collectibles";
"PeerPersonalAccount" = "personal account"; "PeerPersonalAccount" = "personal account";
"PeerChannel" = "channel"; "PeerChannel" = "channel";
"WebAppCollapse" = "Collapse";

View File

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

View File

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

View File

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