diff --git a/stylesheets/_modules.scss b/stylesheets/_modules.scss index 1b2804338b51..509f5f10d44d 100644 --- a/stylesheets/_modules.scss +++ b/stylesheets/_modules.scss @@ -3611,7 +3611,7 @@ button.module-image__border-overlay:focus { position: fixed; top: var(--titlebar-height); inset-inline-start: 0; - z-index: $z-index-on-top-of-everything; + z-index: $z-index-calling-container; } &__container { diff --git a/stylesheets/_variables.scss b/stylesheets/_variables.scss index 85779d2da223..5c7d4d5f776f 100644 --- a/stylesheets/_variables.scss +++ b/stylesheets/_variables.scss @@ -274,8 +274,9 @@ $z-index-window-controls: 10000; $z-index-story-meta: 3; $z-index-scroll-down-button: 10; $z-index-stories: 98; -$z-index-calling: 100; -$z-index-modal-host: 101; -$z-index-above-popup: 101; -$z-index-calling-pip: 103; +$z-index-calling-container: 100; +$z-index-calling: 101; +$z-index-modal-host: 102; +$z-index-above-popup: 103; +$z-index-calling-pip: 104; $z-index-above-context-menu: 126; diff --git a/stylesheets/components/IncomingCallBar.scss b/stylesheets/components/IncomingCallBar.scss index f27fffa697fd..c6f2ebc260c5 100644 --- a/stylesheets/components/IncomingCallBar.scss +++ b/stylesheets/components/IncomingCallBar.scss @@ -3,15 +3,18 @@ .IncomingCallBar { &__container { + -webkit-app-region: no-drag; animation: IncomingCallBar--animation 0.2s forwards ease-out; position: fixed; top: 22px; + user-select: none; width: 100%; z-index: $z-index-popup; padding-inline: 1rem; } &__bar { + -webkit-app-region: no-drag; align-items: center; background-color: $color-gray-75; border-radius: 8px; @@ -21,6 +24,7 @@ margin-block: 0; margin-inline: auto; max-width: 600px; + user-select: none; width: 100%; } @@ -75,10 +79,16 @@ display: flex; height: 40px; justify-content: center; - margin-inline: 12px; outline: none; width: 40px; + &__container { + border-radius: 40px; + height: 40px; + margin-inline: 12px; + width: 40px; + } + &--accept-video-as-audio { background-color: $color-gray-45; diff --git a/ts/components/IncomingCallBar.tsx b/ts/components/IncomingCallBar.tsx index a97fe7e14599..6e202f36ccba 100644 --- a/ts/components/IncomingCallBar.tsx +++ b/ts/components/IncomingCallBar.tsx @@ -68,7 +68,11 @@ function CallButton({ tooltipContent, }: CallButtonProps): JSX.Element { return ( - +