Skip to content

Commit

Permalink
Fix/web 2950 default for mweb fix (#3154)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 authored Aug 5, 2024
1 parent 22781cf commit 04e45e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ export const AppData = React.memo(() => {
[UI_SETTINGS.isAudioOnly]: undefined,
[UI_SETTINGS.uiViewMode]: uiSettings.uiViewMode || UI_MODE_GRID,
[UI_SETTINGS.maxTileCount]: isMobile
? DEFAULT_TILES_IN_VIEW
: Number(elements?.video_tile_layout?.grid?.tiles_in_view) || DEFAULT_TILES_IN_VIEW,
? DEFAULT_TILES_IN_VIEW.MWEB
: Number(elements?.video_tile_layout?.grid?.tiles_in_view) || DEFAULT_TILES_IN_VIEW.DESKTOP,
};
hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
}, [preferences, hmsActions, elements?.video_tile_layout, isMobile]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ export const trackTypeOptions = [
{ label: 'audio', value: 'audio' },
{ label: 'video', value: 'video' },
];
export const DEFAULT_TILES_IN_VIEW = 9;

export const DEFAULT_TILES_IN_VIEW = { MWEB: 4, DESKTOP: 9 };

0 comments on commit 04e45e8

Please sign in to comment.