File tree Expand file tree Collapse file tree 2 files changed +25
-13
lines changed Expand file tree Collapse file tree 2 files changed +25
-13
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,15 @@ export function SplitPanelImplementation({
102
102
< div className = { clsx ( styles . header , isToolbar && styles [ 'with-toolbar' ] ) } style = { appLayoutMaxWidth } >
103
103
< div className = { styles [ 'header-content' ] } >
104
104
< div className = { styles [ 'header-main-row' ] } >
105
- < div >
106
- < h2 className = { clsx ( styles [ 'header-text' ] , testUtilStyles [ 'header-text' ] ) } id = { panelHeaderId } >
105
+ < div className = { styles [ 'header-text-and-info' ] } >
106
+ < h2
107
+ className = { clsx (
108
+ styles [ 'header-text' ] ,
109
+ testUtilStyles [ 'header-text' ] ,
110
+ ! ! headerInfo && styles [ 'with-info' ]
111
+ ) }
112
+ id = { panelHeaderId }
113
+ >
107
114
{ header }
108
115
</ h2 >
109
116
{ headerInfo && (
Original file line number Diff line number Diff line change @@ -240,6 +240,10 @@ $app-layout-drawer-width: calc(#{awsui.$space-layout-toggle-diameter} + 2 * #{aw
240
240
display : flex ;
241
241
}
242
242
243
+ & -content {
244
+ align-items : flex-start ;
245
+ }
246
+
243
247
& -main-row {
244
248
flex : auto ;
245
249
flex-direction : row ;
@@ -250,26 +254,27 @@ $app-layout-drawer-width: calc(#{awsui.$space-layout-toggle-diameter} + 2 * #{aw
250
254
justify-content : space-between ;
251
255
}
252
256
253
- & -content {
254
- align-items : flex-start ;
257
+ & -text-and-info {
258
+ $vertical-margin : calc (#{awsui .$space-scaled-xxs } + 1px );
259
+ margin-block-start : $vertical-margin ;
260
+ min-block-size : calc (#{awsui .$font-panel-header-line-height } + #{$vertical-margin } );
261
+ }
262
+
263
+ & -text ,
264
+ & -info {
265
+ display : inline ;
255
266
}
256
267
257
268
& -text {
258
- $vertical-margin : calc (#{awsui .$space-scaled-xxs } + 1px );
259
269
@include styles .font-panel-header ;
260
270
flex-grow : 1 ;
261
- display : inline-block ;
262
271
padding-block : 0 ;
263
272
padding-inline : 0 ;
264
273
margin-inline : 0 ;
265
274
margin-block : 0 ;
266
- margin-block-start : $vertical-margin ;
267
- min-block-size : calc (#{awsui .$font-panel-header-line-height } + #{$vertical-margin } );
268
- }
269
-
270
- & -info {
271
- display : inline ;
272
- margin-inline-start : awsui .$space-scaled-xs ;
275
+ & .with-info {
276
+ margin-inline-end : awsui .$space-scaled-xs ;
277
+ }
273
278
}
274
279
275
280
& -description {
You can’t perform that action at this time.
0 commit comments