file widget: save icon when mode == save; center icon when hidePath == true
This commit is contained in:
parent
4af4fe93e3
commit
6e8a787b36
3 changed files with 16 additions and 0 deletions
|
|
@ -39,6 +39,8 @@ module.exports = class File extends Widget {
|
|||
|
||||
if (this.getProp('align') === 'left') this.widget.classList.add('left')
|
||||
if (this.getProp('align') === 'right') this.widget.classList.add('right')
|
||||
if (this.getProp('mode') === 'save') this.widget.classList.add('save')
|
||||
if (this.getProp('hidePath')) this.widget.classList.add('hide-path')
|
||||
|
||||
this.text = DOM.get(this.widget, '.text')[0]
|
||||
this.widget.addEventListener('fast-click', (e)=>{
|
||||
|
|
|
|||
|
|
@ -644,6 +644,11 @@
|
|||
min-width: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&.hide-path .text {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.icon {
|
||||
order: 1;
|
||||
display: block;
|
||||
|
|
@ -659,4 +664,8 @@
|
|||
}
|
||||
}
|
||||
|
||||
&.save .icon:after {
|
||||
content:"\f0c7";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue