optimalize UI for preview and sorting options

This commit is contained in:
Milos Holba
2020-12-07 18:57:40 +01:00
parent 97d500028a
commit 418c072414
5 changed files with 68 additions and 154 deletions

View File

@@ -81,11 +81,12 @@
<!--View options-->
<div class="toolbar-button-wrapper">
<img
src="/assets/icons/sorting-icon.svg" size="17"
:class="{ active: fileInfoVisible }"
@click=" sortingAndPreview = !sortingAndPreview"
>
<ToolbarButton
source="preview-sorting"
class="preview-sorting"
:class="{ active: sortingAndPreview }"
@click.native=" sortingAndPreview = !sortingAndPreview"
/>
<ToolbarButton
:class="{ active: fileInfoVisible }"
@@ -369,10 +370,15 @@ export default {
&.active {
/deep/ svg {
line,
circle {
circle,
rect {
stroke: $theme;
}
}
&.preview-sorting{
background: $light_background;
}
}
&.is-inactive {
@@ -426,5 +432,11 @@ export default {
}
}
}
.active {
&.preview-sorting{
background: $dark_mode_foreground !important;
}
}
}
</style>