file-browser: display extension

This commit is contained in:
jean-emmanuel 2019-04-08 21:00:02 +02:00
parent 546777f75e
commit be85718f62
2 changed files with 5 additions and 2 deletions

View file

@ -164,10 +164,10 @@ module.exports = {
browser = html`<div class="file-browser"></div>`,
ariane = html`<div class="ariane"></div>`,
list = html`<form class="file-list"></form>`,
saveInput = html`<input type="text" class="save-as"/>`,
saveInput = html`<input type="text" class="save-as" placeholder="${options.extension ? '*.' + options.extension : ''}" ${options.save ? '' : 'disabled'}/>`,
actions = html`
<div class="file-actions">
${ save ? saveInput : '' }
${saveInput}
<div class="btn cancel">${raw(module.exports.icon('times'))} Cancel</div>
${
save ?

View file

@ -692,6 +692,9 @@ body {
top: -1rem;
position: relative;
background: var(--color-bg);
&[disabled] {
pointer-events: none;
}
}
}
}