From 63c310181bc507c3c032dc4c1e14fdb084736a73 Mon Sep 17 00:00:00 2001 From: Joxit Date: Sun, 21 Apr 2019 19:17:28 +0200 Subject: [PATCH] feat(multi-delete): Add multi select delete for tags --- src/style.css | 39 ++++++++++++++++++++++++- src/tags/remove-image.tag | 18 ++++++++++-- src/tags/taglist.tag | 61 ++++++++++++++++++++++++++++++++++++--- 3 files changed, 110 insertions(+), 8 deletions(-) diff --git a/src/style.css b/src/style.css index d43492f..a4634b0 100644 --- a/src/style.css +++ b/src/style.css @@ -395,10 +395,14 @@ select { .remove-tag { padding: 12px 5px; - width: 30px; + width: 66px; text-align: center; } +.remove-tag.delete { + padding: 7px 5px; +} + catalog material-card, tag-history material-card { min-height: auto; @@ -469,4 +473,37 @@ catalog-element catalog-element.showing material-card, catalog-element catalog-element.hide material-card { margin-top: -50px; opacity: 0; +} + +remove-image { + width: 30px; +} + +material-checkbox .label { + display: none; +} + +taglist material-checkbox { + margin: auto; + width: 18px; +} + +material-checkbox.indeterminate .checkbox .checkmark { + border-bottom: none; +} + +material-checkbox.indeterminate .checkbox.checked .checkmark { + transform: rotate(90deg) scale(1); + -webkit-transform: rotate(90deg) scale(1); + -ms-transform: rotate(90deg) scale(1); + -moz-transform: rotate(90deg) scale(1); + -o-transform: rotate(90deg) scale(1); +} + +material-checkbox .checkbox { + border-color: #777; +} + +material-checkbox .checkbox.checked { + background-color: #777; } \ No newline at end of file diff --git a/src/tags/remove-image.tag b/src/tags/remove-image.tag index db956cf..7839dbc 100644 --- a/src/tags/remove-image.tag +++ b/src/tags/remove-image.tag @@ -15,13 +15,21 @@ You should have received a copy of the GNU Affero General Public License along with this program. If not, see . --> - + delete + diff --git a/src/tags/taglist.tag b/src/tags/taglist.tag index 1aef213..da87be3 100644 --- a/src/tags/taglist.tag +++ b/src/tags/taglist.tag @@ -16,7 +16,7 @@ along with this program. If not, see . --> - +
arrow_back @@ -42,7 +42,10 @@ along with this program. If not, see . onclick="registryUI.taglist.reverse();">Tag History - + 0 } show="{ registryUI.isImageRemoveActivated }"> + 0 }> + delete + @@ -64,14 +67,64 @@ along with this program. If not, see . - +