Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit da30b30

Browse files
authored
Tweak call lobby buttons to more closely match designs (#9943)
1 parent 97831d5 commit da30b30

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

res/css/views/voip/_CallView.pcss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ limitations under the License.
160160
content: "";
161161
display: inline-block;
162162
mask-image: url("$(res)/img/feather-customised/chevron-down.svg");
163-
mask-size: $size;
163+
mask-size: 20px;
164164
mask-position: center;
165165
background-color: $call-primary-content;
166166
height: 100%;
@@ -181,7 +181,7 @@ limitations under the License.
181181
.mx_CallView_deviceButton {
182182
&.mx_CallView_deviceButton_audio::before {
183183
mask-image: url("$(res)/img/element-icons/Mic-off.svg");
184-
mask-size: 14px;
184+
mask-size: 18px;
185185
}
186186

187187
&.mx_CallView_deviceButton_video::before {

src/components/views/voip/CallView.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import IconizedContextMenu, {
3838
IconizedContextMenuOption,
3939
IconizedContextMenuOptionList,
4040
} from "../context_menus/IconizedContextMenu";
41-
import { aboveLeftOf, ContextMenuButton, useContextMenu } from "../../structures/ContextMenu";
41+
import { aboveRightOf, ContextMenuButton, useContextMenu } from "../../structures/ContextMenu";
4242
import { Alignment } from "../elements/Tooltip";
4343
import { ButtonEvent } from "../elements/AccessibleButton";
4444
import AccessibleTooltipButton from "../elements/AccessibleTooltipButton";
@@ -81,7 +81,7 @@ const DeviceButton: FC<DeviceButtonProps> = ({
8181
if (showMenu) {
8282
const buttonRect = buttonRef.current!.getBoundingClientRect();
8383
contextMenu = (
84-
<IconizedContextMenu {...aboveLeftOf(buttonRect)} onFinished={closeMenu}>
84+
<IconizedContextMenu {...aboveRightOf(buttonRect, undefined, 10)} onFinished={closeMenu}>
8585
<IconizedContextMenuOptionList>
8686
{devices.map((d) => (
8787
<IconizedContextMenuOption key={d.deviceId} label={d.label} onClick={() => selectDevice(d)} />
@@ -101,6 +101,7 @@ const DeviceButton: FC<DeviceButtonProps> = ({
101101
>
102102
<AccessibleTooltipButton
103103
className={`mx_CallView_deviceButton mx_CallView_deviceButton_${kind}`}
104+
inputRef={buttonRef}
104105
title={muted ? mutedTitle : unmutedTitle}
105106
alignment={Alignment.Top}
106107
onClick={toggle}
@@ -109,7 +110,6 @@ const DeviceButton: FC<DeviceButtonProps> = ({
109110
{devices.length > 1 ? (
110111
<ContextMenuButton
111112
className="mx_CallView_deviceListButton"
112-
inputRef={buttonRef}
113113
onClick={openMenu}
114114
isExpanded={showMenu}
115115
label={deviceListLabel}

0 commit comments

Comments
 (0)