File tree 2 files changed +12
-13
lines changed
2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 16
16
white-space : nowrap;
17
17
overflow : hidden;
18
18
flex : 1 ;
19
- justify-content : space-between;
20
19
}
21
20
22
21
.search-and-sort-bar .page-info .title-container {
23
- flex : 1 ;
24
- min-width : 0 ;
25
22
overflow : hidden;
26
23
}
27
24
35
32
.search-and-sort-bar .page-info .count-label {
36
33
color : var (--color-text-4 );
37
34
margin-left : 6px ;
38
- flex-shrink : 0 ;
35
+ flex : 0 0 auto ;
39
36
font-weight : 500 ;
40
- text-align : right ;
37
+ display : inline-block ;
41
38
}
42
39
43
40
.search-and-sort-bar .button-group {
44
41
display : flex;
45
- flex-shrink : 0 ;
42
+ flex : 0 0 auto ;
46
43
gap : 8px ;
47
44
margin : 0 8px ;
48
45
}
Original file line number Diff line number Diff line change @@ -209,22 +209,24 @@ const SearchAndSortBar = () => {
209
209
return (
210
210
< div className = "search-and-sort-bar" style = { { width : isBelowMedium ? "100%" : 370 } } >
211
211
< SidebarTrigger />
212
- { title && (
213
- < div className = "page-info " >
214
- < div className = " title-container" >
212
+ < div className = "page-info" >
213
+ < div className = "title-container " >
214
+ { title ? (
215
215
< Typography . Ellipsis
216
216
expandable = { false }
217
217
showTooltip = { ! isBelowMedium }
218
218
style = { { fontWeight : 500 } }
219
219
>
220
220
{ title }
221
221
</ Typography . Ellipsis >
222
- </ div >
223
- { isArticleListReady && count > 0 && (
224
- < Typography . Text className = "count-label" > ({ count } )</ Typography . Text >
222
+ ) : (
223
+ < div className = "placeholder-title" > </ div >
225
224
) }
226
225
</ div >
227
- ) }
226
+ { isArticleListReady && count > 0 && (
227
+ < Typography . Text className = "count-label" > ({ count } )</ Typography . Text >
228
+ ) }
229
+ </ div >
228
230
< div className = "button-group" >
229
231
< ActiveButton
230
232
active = { ! ! filterString }
You can’t perform that action at this time.
0 commit comments