Skip to content

Commit 6dcd5e6

Browse files
Revert "fix(FEC-15083): Add right controls to xs player" (#1199)
Reverts #1198
1 parent 7917297 commit 6dcd5e6

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

src/components/bottom-bar/_bottom-bar.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,16 @@
113113
}
114114
}
115115

116+
&.size-xs {
117+
.bottom-bar {
118+
.controls-container {
119+
.right-controls {
120+
display: none;
121+
}
122+
}
123+
}
124+
}
125+
116126
&.size-xs,
117127
&.size-sm {
118128
.control-button-container:not(.upper-bar-icon) {

src/components/bottom-bar/bottom-bar-utils.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ export function filterControlsByPriority(
55
currentControlWidth: number,
66
lowerPriorityControls: string[][]
77
): string[] {
8-
// Add 20% buffer to account for spacing/margins between controls
9-
const overflow = currentMinBreakPointWidth - currentBarWidth;
10-
const adjustedOverflow = overflow * 1.2;
11-
12-
const numOfOverflowControls = Math.ceil(adjustedOverflow / currentControlWidth) || 1;
8+
const numOfOverflowControls = Math.ceil((currentMinBreakPointWidth - currentBarWidth) / currentControlWidth) || 1;
139
const controlsToRemove = lowerPriorityControls.flat().slice(0, numOfOverflowControls);
1410
const priorityPair: string[] = [...lowerPriorityControls].reverse().find(p => p.length > 1)!;
1511
if (controlsToRemove[controlsToRemove.length - 1] === priorityPair?.[0]) {

0 commit comments

Comments
 (0)