From e521d06702ce7d3eb418aba7bab3379440448ffb Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Sun, 9 May 2021 00:28:28 +0200 Subject: [PATCH] addpersons better ux with reset and selectall features --- .../Resources/public/scss/chillmain.scss | 55 +++++++++----- .../public/vuejs/_components/Modal.vue | 4 +- .../public/vuejs/_components/AddPersons.vue | 75 +++++++++++++------ 3 files changed, 88 insertions(+), 46 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/scss/chillmain.scss b/src/Bundle/ChillMainBundle/Resources/public/scss/chillmain.scss index 63825ec6c..9ae26379e 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/scss/chillmain.scss +++ b/src/Bundle/ChillMainBundle/Resources/public/scss/chillmain.scss @@ -104,30 +104,45 @@ div.vue-component { } //// AddPersons modal -div.modal-body.up { - margin: auto 4em; - div.search { - position: relative; - input { - padding: 1.2em 1.5em 1.2em 2.5em; - margin: 1em 0; +div.body-head { + overflow-y: unset; + div.modal-body:first-child { + margin: auto 4em; + div.search { + position: relative; + input { + padding: 1.2em 1.5em 1.2em 2.5em; + margin: 1em 0; + } + i { + position: absolute; + opacity: 0.5; + padding: 0.65em 0; + top: 50%; + } + i.fa-search { + left: 0.5em; + } + i.fa-times { + right: 1em; + padding: 0.75em 0; + cursor: pointer; + } } - i { - position: absolute; - top: 50%; - left: 0.5em; - padding: 0.65em 0; - opacity: 0.5; - } - + } + div.modal-body:last-child { + padding-bottom: 0; + } +} +div.count { + margin: -0.5em 0 0.7em; + display: flex; + justify-content: space-between; + a { + cursor: pointer; } } div.results { - div.count { - margin: -0.5em 0 0.7em; - display: flex; - justify-content: space-between; - } div.list-item { line-height: 26pt; padding: 0.3em 0.8em; diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/Modal.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/Modal.vue index cbd2d0738..e6c1475e2 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/Modal.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/Modal.vue @@ -9,8 +9,8 @@ -