Skip to content

Commit a007f67

Browse files
fix app sidebar min-width to fit crucible logo when not in mini mode
1 parent be16bd1 commit a007f67

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

src/app/components/player/player.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
>
1111
<mat-sidenav
1212
#sidenav
13-
class="appbarmenu-container"
13+
[ngClass]="
14+
(mini$ | async) ? 'appbarmenu-container-mini' : 'appbarmenu-container'
15+
"
1416
mode="side"
1517
[opened]="opened$ | async"
1618
mwlResizable

src/app/components/player/player.component.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
}
1515

1616
.appbarmenu-container {
17+
min-width: 201px;
18+
max-width: 20vw;
19+
}
20+
21+
.appbarmenu-container-mini {
1722
min-width: 50px;
1823
max-width: 20vw;
1924
}

src/app/components/player/player.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export class PlayerComponent implements OnInit, OnDestroy {
258258
setResizeStyle() {
259259
if (!this.miniSubject.getValue()) {
260260
this.resizeStyle = {
261-
'min-width': '10vw',
261+
'min-width': '201px',
262262
'max-width': '33vw',
263263
width: this.sidenavWidth != null ? `${this.sidenavWidth}px` : null,
264264
};

0 commit comments

Comments
 (0)