- {group.map(({ hover, onClick, className, id, icon, hideOnMobile }) => (
+ {group.map(({ hover, onClick, buttonClassName, id, icon, hideOnMobile }) => (
diff --git a/assets/src/pages/room/components/StreamPlayer/UnpinnedTilesSection.tsx b/assets/src/pages/room/components/StreamPlayer/UnpinnedTilesSection.tsx
index eaa58f3e..29b77abf 100644
--- a/assets/src/pages/room/components/StreamPlayer/UnpinnedTilesSection.tsx
+++ b/assets/src/pages/room/components/StreamPlayer/UnpinnedTilesSection.tsx
@@ -14,6 +14,7 @@ import {
showDisabledIcon,
} from "../../../../features/room-page/components/DisabledTrackIcon";
import SoundIcon from "../../../../features/room-page/components/SoundIcon";
+import useSmartphoneViewport from "../../../../features/shared/hooks/useSmartphoneViewport";
type Props = {
tileConfigs: MediaPlayerTileConfig[];
@@ -40,9 +41,18 @@ const UnpinnedTilesSection: FC
= ({
horizontal,
}: Props) => {
const gridConfig = getGridConfig(tileConfigs.length);
+ const isSmartphone = useSmartphoneViewport().isSmartphone || false;
const videoGridStyle = useMemo(
- () => getUnpinnedTilesGridStyle(gridConfig, isAnyTilePinned, horizontal, videoInVideo, tileConfigs.length === 1),
- [gridConfig, isAnyTilePinned, horizontal, videoInVideo, tileConfigs.length]
+ () =>
+ getUnpinnedTilesGridStyle(
+ gridConfig,
+ isAnyTilePinned,
+ horizontal,
+ videoInVideo,
+ tileConfigs.length === 1,
+ isSmartphone
+ ),
+ [gridConfig, isAnyTilePinned, horizontal, videoInVideo, tileConfigs.length, isSmartphone]
);
const tileStyle = !isAnyTilePinned
diff --git a/assets/src/pages/room/components/StreamPlayer/simulcast/LayerButton.tsx b/assets/src/pages/room/components/StreamPlayer/simulcast/LayerButton.tsx
index e27abcca..115f2c19 100644
--- a/assets/src/pages/room/components/StreamPlayer/simulcast/LayerButton.tsx
+++ b/assets/src/pages/room/components/StreamPlayer/simulcast/LayerButton.tsx
@@ -15,13 +15,12 @@ export type LayerButtonProps = {
export const LayerButton = ({ onClick, text, tooltipText, disabled, selected, tooltipCss = "" }: LayerButtonProps) => (