Commit b88f128 1 parent 018576f commit b88f128 Copy full SHA for b88f128
File tree 2 files changed +23
-5
lines changed
2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change 1
1
<template ref="container">
2
- <div class =" item-wrapper" >
2
+ <div : class =" ` item-wrapper wrap-size-${itemSize}` " >
3
3
<a @click =" itemOpened"
4
4
@mouseup.right =" openContextMenu"
5
5
@contextmenu.prevent
@@ -144,7 +144,7 @@ export default {
144
144
html: true ,
145
145
placement: this .statusResponse ? ' left' : ' auto' ,
146
146
delay: { show: 600 , hide: 200 },
147
- classes: ' item-description-tooltip' ,
147
+ classes: ` item-description-tooltip tooltip-is- ${ this . itemSize } ` ,
148
148
};
149
149
},
150
150
/* Used by certain themes, which display an icon with animated CSS */
@@ -239,6 +239,10 @@ export default {
239
239
240
240
.item-wrapper {
241
241
flex-grow : 1 ;
242
+ flex-basis : 6rem ;
243
+ & .wrap-size-large {
244
+ flex-basis : 12rem ;
245
+ }
242
246
}
243
247
244
248
.item {
@@ -392,11 +396,13 @@ export default {
392
396
width : 100% ;
393
397
}
394
398
p .description {
395
- display : block ;
396
399
margin : 0 ;
400
+ display : block ;
397
401
white-space : pre-wrap ;
398
- font-size : .9em ;
399
402
text-overflow : ellipsis ;
403
+ font-size : .9em ;
404
+ line-height : 1rem ;
405
+ height : 2rem ;
400
406
}
401
407
}
402
408
}
Original file line number Diff line number Diff line change 1
1
<template >
2
- <div class =" item-icon" >
2
+ <div : class =" ` item-icon wrapper-${size}` " >
3
3
<!-- Font-Awesome Icon -->
4
4
<i v-if =" iconType === 'font-awesome'" :class =" `${icon} ${size}`" ></i >
5
5
<!-- Emoji Icon -->
@@ -189,6 +189,18 @@ export default {
189
189
</script >
190
190
191
191
<style lang="scss">
192
+
193
+ /* Icon wraper */
194
+ .item-icon {
195
+ & .wrapper-medium {
196
+ min-height : 2.5rem ;
197
+ }
198
+ & .wrapper-large {
199
+ min-width : 3.5rem ;
200
+ text-align : center ;
201
+ }
202
+ }
203
+
192
204
/* Default Image Icon */
193
205
.tile-icon {
194
206
min-width : 1rem ;
You can’t perform that action at this time.
0 commit comments