@@ -240,6 +240,8 @@ export default {
240
240
</script >
241
241
242
242
<style lang="scss">
243
+ @import ' @/styles/style-helpers.scss' ;
244
+ @import ' @/styles/media-queries.scss' ;
243
245
244
246
.item-wrapper {
245
247
flex-grow : 1 ;
@@ -269,10 +271,6 @@ export default {
269
271
box-shadow : var (--item-hover-shadow );
270
272
background : var (--item-background-hover );
271
273
color : var (--item-text-color-hover );
272
- position : relative ;
273
- .tile-title span .text {
274
- white-space : pre-wrap ;
275
- }
276
274
}
277
275
& :focus {
278
276
outline : 2px solid var (--primary );
@@ -292,11 +290,18 @@ export default {
292
290
padding : 0 ;
293
291
z-index : 2 ;
294
292
display : -webkit-box ;
295
- -webkit-line-clamp : 3 ;
293
+ -webkit-line-clamp : 1 ;
296
294
-webkit-box-orient : vertical ;
297
295
word-break : keep-all ;
296
+ & :not (.no-icon ) {
297
+ overflow : hidden ;
298
+ }
298
299
span .text {
300
+ text-overflow : ellipsis ;
299
301
white-space : nowrap ;
302
+ overflow : hidden ;
303
+ display : block ;
304
+ width : -webkit-fill-available ;
300
305
}
301
306
}
302
307
@@ -371,8 +376,7 @@ export default {
371
376
margin-bottom : 0.25rem ;
372
377
}
373
378
.tile-title {
374
- min-width : 100px ;
375
- max-width : 160px ;
379
+ width : 100% ;
376
380
& .no-icon {
377
381
text-align : left ;
378
382
width : 100% ;
@@ -398,6 +402,7 @@ export default {
398
402
.tile-title {
399
403
height : auto ;
400
404
padding : 0.1rem 0.25rem ;
405
+ -webkit-line-clamp : 3 ;
401
406
span .text {
402
407
position : relative ;
403
408
font-weight : bold ;
@@ -425,13 +430,28 @@ export default {
425
430
}
426
431
}
427
432
428
- </style >
429
-
430
- <!-- An un-scoped style tag, since tooltip is outside this DOM tree -->
431
- <style lang="scss">
432
-
433
433
.disabled-link {
434
434
pointer-events : none ;
435
435
}
436
436
437
+ /* Modifications for more equal width on auto-layout. This is bad code. */
438
+ .orientation-auto {
439
+ .collapsable.col-1 .wrap-size-medium {
440
+ max-width : 50% ;
441
+ }
442
+ @include tablet-up {
443
+ .collapsable.col-2 .wrap-size-medium {
444
+ max-width : 25% ;
445
+ }
446
+ }
447
+ @include tablet-up {
448
+ .collapsable.col-1 .wrap-size-small {
449
+ min-width : 50% ;
450
+ }
451
+ .collapsable.col-2 .wrap-size-small {
452
+ min-width : 20% ;
453
+ }
454
+ }
455
+ }
456
+
437
457
</style >
0 commit comments