File tree 3 files changed +46
-21
lines changed
3 files changed +46
-21
lines changed Original file line number Diff line number Diff line change 1
1
{{> include " ./ListItem.hbs" }}
2
2
3
3
{{ #*inline " listItemContent" }}
4
- <div class =" ui5-li-title -wrapper" >
4
+ <div class =" ui5-li-text -wrapper" >
5
5
<span part =" title" class =" ui5-li-title" ><slot ></slot ></span >
6
6
{{ #if description }}
7
- <span part =" description" class =" ui5-li-desc" >{{ description }} </span >
7
+ <div class =" ui5-li-description-info-wrapper" >
8
+ <span part =" description" class =" ui5-li-desc" >{{ description }} </span >
9
+
10
+ {{ #if info }}
11
+ <span part =" info" class =" ui5-li-info" >{{ info }} </span >
12
+ {{ /if }}
13
+ </div >
8
14
{{ /if }}
9
15
{{ #unless typeActive }}
10
16
<span class =" ui5-hidden-text" >{{ type }} </span >
11
17
{{ /unless }}
12
18
</div >
13
- {{ #if info }}
14
- <span part =" info" class =" ui5-li-info" >{{ info }} </span >
15
- {{ /if }}
19
+ {{ #unless description }}
20
+ {{ #if info }}
21
+ <span part =" info" class =" ui5-li-info" >{{ info }} </span >
22
+ {{ /if }}
23
+ {{ /unless }}
16
24
{{ /inline }}
17
25
18
26
{{ #*inline " imageBegin" }}
Original file line number Diff line number Diff line change 1
1
{{> include " ./StandardListItem.hbs" }}
2
2
3
3
{{ #*inline " listItemContent" }}
4
- <div class =" ui5-li-title -wrapper" >
4
+ <div class =" ui5-li-text -wrapper" >
5
5
{{ #if hasTitle }}
6
6
<span part =" title" class =" ui5-li-title" ><slot ></slot ></span >
7
7
{{ /if }}
8
8
{{ #if hasDescription }}
9
- <span part =" description" class =" ui5-li-desc" >
10
- {{ #if richDescription.length }}
11
- <slot name =" richDescription" ></slot >
12
- {{ else }}
13
- {{ description }}
9
+ <div class =" ui5-li-description-info-wrapper" >
10
+ <span part =" description" class =" ui5-li-desc" >
11
+ {{ #if richDescription.length }}
12
+ <slot name =" richDescription" ></slot >
13
+ {{ else }}
14
+ {{ description }}
15
+ {{ /if }}
16
+ </span >
17
+
18
+ {{ #if info }}
19
+ <span part =" info" class =" ui5-li-info" >{{ info }} </span >
14
20
{{ /if }}
15
- </span >
21
+ </div >
16
22
{{ /if }}
17
23
{{ #unless typeActive }}
18
24
<span class =" ui5-hidden-text" >{{ type }} </span >
19
25
{{ /unless }}
20
26
</div >
21
- {{ #if info }}
22
- <span part =" info" class =" ui5-li-info" >{{ info }} </span >
23
- {{ /if }}
27
+ {{ #unless hasDescription }}
28
+ {{ #if info }}
29
+ <span part =" info" class =" ui5-li-info" >{{ info }} </span >
30
+ {{ /if }}
31
+ {{ /unless }}
24
32
{{ /inline }}
25
33
Original file line number Diff line number Diff line change 81
81
padding-bottom : 0.375rem ;
82
82
}
83
83
84
- .ui5-li-title -wrapper {
84
+ .ui5-li-text -wrapper {
85
85
display : flex;
86
86
flex-direction : column;
87
87
flex : auto;
88
88
min-width : 1px ;
89
89
line-height : normal;
90
90
}
91
91
92
- : host ([description ]) .ui5-li-title -wrapper {
92
+ : host ([description ]) .ui5-li-text -wrapper {
93
93
height : 100% ;
94
94
justify-content : space-between;
95
95
padding : 0.125rem 0 ;
96
96
}
97
97
98
+ .ui5-li-description-info-wrapper {
99
+ display : flex;
100
+ justify-content : space-between;
101
+ }
102
+
98
103
.ui5-li-title {
99
104
color : var (--sapTextColor );
100
105
font-size : var (--_ui5_list_item_title_size );
101
106
}
102
107
108
+ .ui5-li-info ,
103
109
.ui5-li-title ,
104
110
.ui5-li-desc {
105
111
white-space : nowrap;
116
122
margin : 0 0.25rem ;
117
123
color : var (--sapNeutralTextColor );
118
124
font-size : 0.875rem ;
119
- flex-shrink : 0 ;
120
- overflow : hidden;
121
- text-overflow : ellipsis;
122
- white-space : nowrap;
125
+ min-width : 6rem ;
126
+ text-align : right;
127
+ max-width : 40% ;
123
128
}
124
129
125
130
: host ([description ]) .ui5-li-info {
201
206
margin : .5rem 0 .5rem 0.75rem ;
202
207
}
203
208
209
+ [dir = "rtl" ] .ui5-li-info {
210
+ text-align : left;
211
+ }
212
+
204
213
: host ([_mode = "SingleSelectBegin" ]) [dir = "rtl" ].ui5-li-root {
205
214
padding-right : 0 ;
206
215
padding-left : 1rem ;
You can’t perform that action at this time.
0 commit comments