File tree Expand file tree Collapse file tree 2 files changed +50
-18
lines changed Expand file tree Collapse file tree 2 files changed +50
-18
lines changed Original file line number Diff line number Diff line change 128
128
}
129
129
130
130
.rundown-view__shelf__tabs__tab {
131
+ position : relative ;
131
132
display : block ;
132
133
background : none ;
133
134
border : none ;
134
- position : relative ;
135
135
flex : 1 1 ;
136
136
max-width : 7em ;
137
- min-width : 13 em ;
137
+ min-width : min-content ;
138
138
overflow : hidden ;
139
139
text-overflow : ellipsis ;
140
140
white-space : nowrap ;
141
141
text-align : center ;
142
- color : #8f8f8f ;
143
142
line-height : $inspector-shelf-tabs-height ;
144
143
cursor : pointer ;
145
144
user-select : none ;
145
+ padding-inline : 1.5em ;
146
146
147
147
outline-offset : -5px ;
148
148
149
+ // this is a setup that ensures that the min-content is calculated with this font-weight,
150
+ // while we display the button with differing font-weights depending on state
151
+ font-weight : 500 ;
152
+ color : transparent ;
153
+
149
154
& :hover {
150
- color : #fff ;
151
- transition : 0.3s ;
155
+ // color: #fff;
156
+ // transition: 0.3s;
157
+
158
+ > .rundown-view__shelf__tabs__tab-label {
159
+ color : #fff ;
160
+ transition : 0.3s ;
161
+ }
162
+ }
163
+
164
+ > .rundown-view__shelf__tabs__tab-label {
165
+ position : absolute ;
166
+ top : 0 ;
167
+ left : 0 ;
168
+ right : 0 ;
169
+ line-height : inherit ;
170
+ font-weight : 300 ;
171
+ color : #b0b0b0 ;
152
172
}
153
173
154
174
& .selected {
155
- color : #fff ;
156
- font-weight : 500 ;
157
- text-shadow : 0 0 5px #000 ;
175
+ // color: #fff;
176
+ // font-weight: 500;
177
+ // text-shadow: 0 0 5px #000;
178
+ // transition: 0s;
179
+
180
+ > .rundown-view__shelf__tabs__tab-label {
181
+ color : #fff ;
182
+ font-weight : 500 ;
183
+ text-shadow : 0 0 5px #000 ;
184
+ transition : 0s ;
185
+ }
158
186
159
187
& ::after {
160
188
content : ' ' ;
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ export function ShelfRundownLayout(props: Readonly<IShelfRundownLayoutProps>): J
52
52
tabIndex = { 0 }
53
53
role = "tab"
54
54
>
55
+ < div className = "rundown-view__shelf__tabs__tab-label" > { t ( 'AdLib' ) } </ div >
55
56
{ t ( 'AdLib' ) }
56
57
</ button >
57
58
< button
@@ -62,6 +63,7 @@ export function ShelfRundownLayout(props: Readonly<IShelfRundownLayoutProps>): J
62
63
tabIndex = { 0 }
63
64
role = "tab"
64
65
>
66
+ < div className = "rundown-view__shelf__tabs__tab-label" > { t ( 'Global AdLib' ) } </ div >
65
67
{ t ( 'Global AdLib' ) }
66
68
</ button >
67
69
</ >
@@ -79,21 +81,23 @@ export function ShelfRundownLayout(props: Readonly<IShelfRundownLayoutProps>): J
79
81
tabIndex = { 0 }
80
82
role = "tab"
81
83
>
84
+ < div className = "rundown-view__shelf__tabs__tab-label" > { panel . name } </ div >
82
85
{ panel . name }
83
86
</ button >
84
87
) )
85
88
) }
89
+ < button
90
+ className = { ClassNames ( 'rundown-view__shelf__tabs__tab' , {
91
+ selected : ( props . selectedTab || SHELF_DEFAULT_TAB ) === ShelfTabs . SYSTEM_HOTKEYS ,
92
+ } ) }
93
+ onClick = { ( ) => onSwitchTab ( ShelfTabs . SYSTEM_HOTKEYS ) }
94
+ tabIndex = { 0 }
95
+ role = "tab"
96
+ >
97
+ < div className = "rundown-view__shelf__tabs__tab-label" > { t ( 'Shortcuts' ) } </ div >
98
+ { t ( 'Shortcuts' ) }
99
+ </ button >
86
100
</ OverflowingContainer >
87
- < button
88
- className = { ClassNames ( 'rundown-view__shelf__tabs__tab' , {
89
- selected : ( props . selectedTab || SHELF_DEFAULT_TAB ) === ShelfTabs . SYSTEM_HOTKEYS ,
90
- } ) }
91
- onClick = { ( ) => onSwitchTab ( ShelfTabs . SYSTEM_HOTKEYS ) }
92
- tabIndex = { 0 }
93
- role = "tab"
94
- >
95
- { t ( 'Shortcuts' ) }
96
- </ button >
97
101
</ div >
98
102
< div className = "rundown-view__shelf__panel super-dark" role = "tabpanel" >
99
103
{ ! rundownLayout ? (
You can’t perform that action at this time.
0 commit comments