File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ const FilterInStack: FC<{
48
48
} else openFutureFilter ( filterIndex ) ;
49
49
} }
50
50
>
51
- < div className = "d-flex justify-content-between align-items-center " >
52
- < div className = "d-flex align-items-center " >
51
+ < div className = "d-flex justify-content-between align-items-start " >
52
+ < div className = " button-container " >
53
53
{ /* filter downstream ongoing edition => disabled */ }
54
54
{ ! active && < RiFilterOffLine title = { t ( "filters.desactivated" ) . toString ( ) } className = "icon" /> }
55
55
{ active && filterIndex !== filters . past . length - 1 && (
@@ -91,7 +91,7 @@ const FilterInStack: FC<{
91
91
</ div >
92
92
) }
93
93
</ div >
94
- < div className = "d-flex align-items-center " >
94
+ < div className = " button-container " >
95
95
< button
96
96
className = "btn btn-icon"
97
97
onClick = { ( e ) => {
@@ -134,7 +134,9 @@ const GraphFilters: FC = () => {
134
134
if ( filters . past . length !== 0 ) closeAllPastFilters ( ) ;
135
135
} }
136
136
>
137
- < GraphIcon className = "icon" />
137
+ < div className = "button-container" >
138
+ < GraphIcon className = "icon" />
139
+ </ div >
138
140
< div >
139
141
< div className = "fs-5" > { t ( "filters.full_graph" ) } </ div >
140
142
< div className = "small text-muted" >
Original file line number Diff line number Diff line change 7
7
& .inactive {
8
8
@extend .text-muted ;
9
9
}
10
- .icon {
11
- margin : 0 0.75rem ;
10
+
11
+ .button-container {
12
+ // we center buttons vertically on two lines of fs-5 text (filter title)
13
+ height : calc (var (--bs-body-line-height ) * #{$h5-font-size } * 2 );
14
+ margin : 0 0.5rem ;
15
+ display : flex ;
16
+ align-items : center ;
17
+ .btn-icon {
18
+ padding : 0 ;
19
+ }
12
20
}
13
21
14
22
& ::after {
You can’t perform that action at this time.
0 commit comments