Skip to content

Commit 68005ae

Browse files
committed
feat(ui): add app-region drag/no-drag and tweak styles
Add app-region: drag to container and header elements and app-region: no-drag to interactive controls multiple components so the Tauri window dragging behaves correctly while keeping buttons and form controls clickable. Expand header search max width from 500px to 800px to give more room on larger screens. Clean up and restyle video-player toolbar toolbar primary colors and unify toolbar spacing. Files changed include navigation, sidebar, header, main containers, live-stream layout, navigation-bar, stalker container, and video-player toolbar. These changes improve window drag UX on desktop and refine toolbar/header appearance.
1 parent 02561a2 commit 68005ae

File tree

10 files changed

+50
-20
lines changed

10 files changed

+50
-20
lines changed

apps/web/src/app/shared/components/header/header.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
// Refined search field with elegant glass-morphism
228228
.search-container {
229229
flex: 1;
230-
max-width: 500px;
230+
max-width: 800px;
231231
margin: 0 24px;
232232
position: relative;
233233
display: flex;

apps/web/src/app/stalker/stalker-main-container.component.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@
3131
display: flex;
3232
flex-direction: row;
3333
align-items: center;
34+
app-region: drag;
3435

3536
button {
3637
@include mat.form-field-density(-5);
38+
app-region: no-drag;
3739
}
3840
}
3941

apps/web/src/app/xtream-tauri/live-stream-layout/live-stream-layout.component.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@
4242
display: flex;
4343
flex-direction: row;
4444
align-items: center;
45+
app-region: drag;
4546

4647
button {
4748
@include mat.form-field-density(-5);
49+
app-region: no-drag;
4850
}
4951
}
5052

apps/web/src/app/xtream-tauri/navigation/navigation.component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
height: 100%;
66
}
77

8+
.portal-status-container {
9+
app-region: drag;
10+
}
11+
812
.mat-nav-list {
913
padding-top: 0;
1014
}

apps/web/src/app/xtream-tauri/sidebar.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@
77
.sidebar-header {
88
padding: 16px;
99
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
10+
app-region: drag;
1011

1112
h2 {
1213
margin: 0;
1314
font-size: 1.2rem;
1415
font-weight: 500;
1516
}
17+
18+
button {
19+
app-region: no-drag;
20+
}
1621
}
1722
}

apps/web/src/app/xtream-tauri/xtream-main-container.component.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
display: flex;
1313
flex-direction: row;
1414
align-items: center;
15+
app-region: drag;
1516

1617
button {
1718
@include mat.form-field-density(-5);
19+
app-region: no-drag;
1820
}
1921
}
2022

@@ -28,6 +30,7 @@
2830
.content-header {
2931
padding: 16px;
3032
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
33+
app-region: drag;
3134

3235
h2 {
3336
margin: 0;
@@ -37,6 +40,10 @@
3740
align-items: center;
3841
gap: 10px;
3942
}
43+
44+
button {
45+
app-region: no-drag;
46+
}
4047
}
4148

4249
.scrollable-content {

apps/web/src/app/xtream/navigation-bar/navigation-bar.component.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
justify-content: space-between;
1212
align-items: center;
1313
padding: 0 10px;
14+
app-region: drag;
15+
16+
button,
17+
mat-button-toggle-group {
18+
app-region: no-drag;
19+
}
1420
}
1521

1622
#sub-panel {

apps/web/src/styles.scss

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,9 @@ html {
3030
}
3131
}
3232

33-
.mat-toolbar.mat-primary {
34-
background: #000;
35-
color: #b8b8b8;
36-
}
37-
3833
.full-width {
3934
width: 100%;
4035
}
41-
42-
.mat-toolbar-row,
43-
.mat-toolbar-single-row {
44-
height: 54px;
45-
}
46-
4736
.mat-tab-label-active {
4837
opacity: 1 !important;
4938
}
@@ -55,13 +44,6 @@ textarea,
5544
outline: none;
5645
}
5746

58-
/* .dark-theme .mat-expansion-panel,
59-
.dark-theme .mat-drawer,
60-
.dark-theme .mat-app-background,
61-
.dark-theme.mat-app-background {
62-
background-color: #1d1d1d;
63-
} */
64-
6547
.dark-theme {
6648
::-webkit-scrollbar {
6749
overflow-y: scroll;

libs/ui/components/src/lib/video-player/sidebar/sidebar.component.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@
33
align-items: center;
44
padding: 8px;
55
justify-content: space-between;
6+
app-region: drag;
67

78
.left {
89
display: flex;
910
gap: 5px;
1011
}
12+
13+
button {
14+
app-region: no-drag;
15+
}
1116
}
1217

1318
.playlist-info {
Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
1+
mat-toolbar {
2+
app-region: drag;
3+
4+
button {
5+
app-region: no-drag;
6+
}
7+
}
8+
19
.spacer {
210
flex: 1 1 auto;
311
}
412

13+
.mat-toolbar.mat-primary {
14+
background: var(--mdc-primary-100);
15+
color: #ccc;
16+
17+
button {
18+
color: #ccc;
19+
}
20+
}
21+
522
@media only screen and (max-width: 599px) {
623
.sidenav-toggle-button {
724
display: none;
825
}
9-
}
26+
}

0 commit comments

Comments
 (0)