diff --git a/src/components/MediaMuteAndSwitchButton.module.css b/src/components/MediaMuteAndSwitchButton.module.css index 0d36b8fd3..39925337e 100644 --- a/src/components/MediaMuteAndSwitchButton.module.css +++ b/src/components/MediaMuteAndSwitchButton.module.css @@ -136,6 +136,16 @@ Please see LICENSE in the repository root for full details. outline-offset: calc(-1 * var(--cpd-border-width-2)); } +/* The rule under a section heading, drawn edge to edge. A separator insets + itself by default, which leaves it floating short of the menu's sides. + The menu also gives a separator room beneath it, for one dividing two + sections; under a heading that reads as the heading floating away from + what it names. */ +.menu .sectionRule { + margin-inline: 0; + margin-block-end: var(--cpd-space-3x); +} + /* * The Background effects grid. * diff --git a/src/components/MediaMuteAndSwitchButton.tsx b/src/components/MediaMuteAndSwitchButton.tsx index 35ef1b2ea..530cf62a2 100644 --- a/src/components/MediaMuteAndSwitchButton.tsx +++ b/src/components/MediaMuteAndSwitchButton.tsx @@ -650,6 +650,12 @@ export const MediaMuteAndSwitchButton: FC = ({
+ {/* The camera menu rules off under each heading. The microphone + menu still divides its two sections instead, which is the + design the audio menu was drawn to. */} + {iconsAndLabels === "video" && ( + + )} {/* The heading sits outside, so the meter can never ride up over it: sticky only holds while this block is in view. */}
@@ -672,22 +678,18 @@ export const MediaMuteAndSwitchButton: FC = ({ {iconsAndLabels === "video" && backgroundEffects !== undefined && backgroundEffects.length > 0 && ( - <> - -
-
- -
-
- {effectTiles()} -
+
+
+
- + +
+ {effectTiles()} +
+
)}
{toggles.length > 0 &&
}