@@ -12,112 +12,91 @@ body,
12
12
height : 100% ;
13
13
}
14
14
15
- #root {
16
- display : flex ;
17
- height : 100% ;
18
-
19
- & > div .str-chat {
20
- height : 100% ;
21
- width : 100% ;
22
- display : flex ;
23
- }
24
-
25
- .str-chat__channel-list {
26
- position : fixed ;
27
- z-index : 1 ;
28
- height : 100% ;
29
- width : 0 ;
30
- flex-shrink : 0 ;
31
- box-shadow : 0 0 8px rgba (0 , 0 , 0 , 0.15 );
32
-
33
- & --open {
15
+ .str-chat__chat-view {
16
+ .str-chat__chat-view__channels {
17
+ .str-chat__channel {
18
+ width : 100% ;
19
+ }
20
+ .str-chat__channel-list {
21
+ width : 350px ;
22
+ min-width : 350px ;
23
+ }
24
+ .str-chat__thread {
25
+ min-width : 350px ;
34
26
width : 30% ;
35
- position : fixed ;
36
27
}
37
- transition : width 0.3s ease-out ;
38
28
}
39
29
40
- .str-chat__channel {
41
- flex : 1 ;
42
- min-width : 0 ;
43
- }
44
-
45
- .str-chat__main-panel {
46
- min-width : 0 ;
47
- flex : 1 ;
48
-
49
- & --thread-open {
50
- display : none ;
30
+ .str-chat__chat-view__threads {
31
+ .str-chat__thread-list-container {
32
+ width : 350px ;
33
+ min-width : 350px ;
51
34
}
52
- }
53
35
54
- .str-chat__thread {
55
- flex : 1 ;
56
- height : 100% ;
57
- position : absolute ;
58
- z-index : 1 ;
36
+ .str-chat__channel {
37
+ width : 100% ;
38
+ }
59
39
}
40
+ }
60
41
61
- .str-chat__channel-header .str-chat__header-hamburger {
62
- width : 30px ;
63
- height : 38px ;
64
- padding : var (--xxs-p );
65
- margin-right : var (--xs-m );
42
+ @media screen and (max-width : 1024px ) {
43
+ .str-chat__chat-view {
66
44
display : flex ;
67
- align-items : center ;
68
- justify-content : center ;
69
- cursor : pointer ;
70
- border : none ;
71
- background : transparent ;
45
+ flex-direction : column-reverse ;
46
+
47
+ .str-chat__chat-view__selector {
48
+ border-right : none ;
49
+ border-top : 1px solid var (--str-chat-selector-border-color );
50
+ flex-direction : row ;
51
+ justify-content : center ;
52
+ padding-block : 8px ;
53
+ }
54
+
55
+ .str-chat__chat-view__channels {
56
+ position : relative ;
72
57
73
- & :hover {
74
- svg path {
75
- fill : var (--primary-color );
58
+ .str-chat__channel-header .str-chat__header-hamburger {
59
+ background-color : unset ;
60
+ margin : unset ;
61
+ border : unset ;
62
+ padding-inline : 8px ;
63
+ display : flex ;
64
+ color : var (--str-chat__text-low-emphasis-color );
65
+ & > svg {
66
+ width : 25px ;
67
+ }
76
68
}
77
- }
78
- }
79
69
80
- @media screen and (min-width : 768px ) {
81
- .str-chat__channel-list {
82
- width : 30% ;
83
- position : initial ;
84
- z-index : 0 ;
85
- }
70
+ .str-chat__channel-list {
71
+ display : none ;
72
+ }
86
73
87
- .str-chat__chat-view__channels {
88
74
.str-chat__thread {
89
- position : initial ;
90
- z-index : 0 ;
75
+ position : absolute ;
76
+ width : 100 % ;
91
77
}
92
- }
93
78
94
- .str-chat__channel-header .str-chat__header-hamburger {
95
- display : none ;
79
+ .str-chat__channel-list.str-chat__channel-list--open {
80
+ position : absolute ;
81
+ width : 100% ;
82
+ display : block ;
83
+ z-index : 1 ;
84
+ }
96
85
}
97
- }
98
86
99
- @media screen and (min-width : 1024px ) {
100
- .str-chat__main-panel {
101
- min-width : 0 ;
87
+ .str-chat__chat-view__threads {
88
+ position : relative ;
102
89
103
- & --thread-open {
104
- max-width : 55% ;
105
- display : flex ;
90
+ .str-chat__thread-list-container :has (~ .str-chat__channel .str-chat__container :empty ) {
91
+ position : absolute ;
92
+ height : 100% ;
93
+ width : 100% ;
94
+ z-index : 1 ;
106
95
}
107
- }
108
96
109
- .str-chat__chat-view__channels {
110
- .str-chat__thread {
111
- max-width : 45% ;
97
+ .str-chat__thread-list-container :has (~ .str-chat__channel .str-chat__container :not (:empty )) {
98
+ display : none ;
112
99
}
113
100
}
114
-
115
- .str-chat__channel-header .str-chat__header-hamburger {
116
- display : none ;
117
- }
118
- }
119
-
120
- .str-chat__thread-list-container {
121
- max-width : 350px ;
122
101
}
123
102
}
0 commit comments