This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +28
-8
lines changed
src/components/views/elements
test/components/views/settings/__snapshots__ Expand file tree Collapse file tree 5 files changed +28
-8
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ $EventTile_e2e_state_indicator_width: 4px;
27
27
$MessageTimestamp_width : 46px ; /* 8 + 30 (avatar) + 8 */
28
28
$MessageTimestamp_width_hover : calc ($MessageTimestamp_width - 2 * $EventTile_e2e_state_indicator_width );
29
29
30
+ $slider-dot-size : 1em ;
31
+ $slider-selection-dot-size : 2.4em ;
32
+
30
33
:root {
31
34
font-size : 10px ;
32
35
Original file line number Diff line number Diff line change @@ -54,22 +54,31 @@ limitations under the License.
54
54
55
55
.mx_Slider_selectionDot {
56
56
position : absolute ;
57
- width : 1.1 em ;
58
- height : 1.1 em ;
57
+ width : $slider-selection-dot-size ;
58
+ height : $slider-selection-dot-size ;
59
59
background-color : $slider-selection-color ;
60
60
border-radius : 50% ;
61
61
box-shadow : 0 0 6px lightgrey ;
62
62
z-index : 10 ;
63
63
}
64
64
65
+ .mx_Slider_selectionText {
66
+ color : $muted-fg-color ;
67
+ font-size : $font-14px ;
68
+ position : relative ;
69
+ text-align : center ;
70
+ top : 30px ;
71
+ width : 100% ;
72
+ }
73
+
65
74
.mx_Slider_selection > hr {
66
75
margin : 0 ;
67
76
border : 0.2em solid $slider-selection-color ;
68
77
}
69
78
70
79
.mx_Slider_dot {
71
- height : 1 em ;
72
- width : 1 em ;
80
+ height : $slider-dot-size ;
81
+ width : $slider-dot-size ;
73
82
border-radius : 50% ;
74
83
background-color : $slider-background-color ;
75
84
z-index : 0 ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ limitations under the License.
34
34
display : flex ;
35
35
flex-direction : row ;
36
36
align-items : center ;
37
- padding : 15px ;
37
+ padding : 15px 15 px 35 px ;
38
38
background : rgba ($appearance-tab-border-color , 0.2 );
39
39
border-radius : 10px ;
40
40
font-size : 10px ;
Original file line number Diff line number Diff line change @@ -86,7 +86,9 @@ export default class Slider extends React.Component<IProps> {
86
86
if ( ! this . props . disabled ) {
87
87
const offset = this . offset ( this . props . values , this . props . value ) ;
88
88
selection = < div className = "mx_Slider_selection" >
89
- < div className = "mx_Slider_selectionDot" style = { { left : "calc(-0.55em + " + offset + "%)" } } />
89
+ < div className = "mx_Slider_selectionDot" style = { { left : "calc(-1.195em + " + offset + "%)" } } >
90
+ < div className = "mx_Slider_selectionText" > { this . props . value } </ div >
91
+ </ div >
90
92
< hr style = { { width : offset + "%" } } />
91
93
</ div > ;
92
94
}
Original file line number Diff line number Diff line change @@ -83,10 +83,16 @@ exports[`FontScalingPanel renders the font scaling UI 1`] = `
83
83
className = " mx_Slider_selectionDot"
84
84
style = {
85
85
Object {
86
- " left" : " calc(-0.55em + 50%)" ,
86
+ " left" : " calc(-1.195em + 50%)" ,
87
87
}
88
88
}
89
- />
89
+ >
90
+ <div
91
+ className = " mx_Slider_selectionText"
92
+ >
93
+ 15
94
+ </div >
95
+ </div >
90
96
<hr
91
97
style = {
92
98
Object {
You can’t perform that action at this time.
0 commit comments