Add tests to make sure we always have one settings button.

This commit is contained in:
Timo K
2026-04-13 15:49:28 +02:00
parent 098a8c0c41
commit 5f0afd3edc
5 changed files with 110 additions and 34 deletions

View File

@@ -22,7 +22,7 @@ import {
} from "@vector-im/compound-design-tokens/assets/web/icons";
import styles from "./Button.module.css";
import inCallViewStyles from "../components/InCallFooter.module.css";
import inCallFooterStyles from "../components/InCallFooter.module.css";
import { platform } from "../Platform";
interface MicButtonProps extends ComponentPropsWithoutRef<"button"> {
@@ -177,9 +177,9 @@ export const SettingsButton: FC<SettingsButtonProps> = ({
<Tooltip label={t("common.settings")}>
<CpdButton
className={classNames(className, {
[inCallViewStyles.settingsOnlyShowWide]:
[inCallFooterStyles.settingsOnlyShowWide]:
showForScreenWidth === "wide",
[inCallViewStyles.settingsOnlyShowNarrow]:
[inCallFooterStyles.settingsOnlyShowNarrow]:
showForScreenWidth === "narrow",
})}
iconOnly