From 72aeceb8e4db927624267062acc343ec6b0cf4e8 Mon Sep 17 00:00:00 2001 From: dessant Date: Mon, 27 Jan 2020 20:30:41 +0200 Subject: [PATCH] fix: update UI layout --- src/options/App.vue | 55 ++++++++++++++++++++++++++++++++++----------- src/setup/App.vue | 4 ++-- 2 files changed, 44 insertions(+), 15 deletions(-) diff --git a/src/options/App.vue b/src/options/App.vue index 9380d08..bcd86b7 100644 --- a/src/options/App.vue +++ b/src/options/App.vue @@ -95,9 +95,9 @@ - {{ getText('buttonText_addApi') }} @@ -170,9 +170,9 @@ class="download-button" :unelevated="true" :disabled="!clientAppDownloadUrl" + :label="getText('buttonText_downloadApp')" @click="$refs.dlLink.click()" > - {{ getText('buttonText_downloadApp') }} $mdc-theme-primary: #1abc9c; +@import '@material/select/mdc-select'; @import '@material/theme/mixins'; @import '@material/typography/mixins'; @import '@material/button/mixins'; body { + margin: 0; @include mdc-typography-base; font-size: 100%; background-color: #ffffff; overflow: visible !important; } -.mdc-switch { - margin-right: 12px; -} - #app { display: grid; grid-row-gap: 32px; - padding: 12px; + padding: 24px; +} + +.mdc-switch { + margin-right: 16px; } .section-title, @@ -386,20 +388,47 @@ body { .option-wrap { display: grid; - grid-row-gap: 12px; - padding-top: 16px; + grid-row-gap: 24px; + padding-top: 24px; grid-auto-columns: min-content; } .option { display: flex; align-items: center; - height: 36px; + height: 24px; + + & .mdc-form-field { + max-width: calc(100vw - 48px); + + & label { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } + } +} + +.option { + &.select, + &.text-field { + height: 56px; + } } -.option.select, -.option.text-field { - height: 56px; +.option.select { + align-items: start; + + & .mdc-select__anchor, + & .mdc-select__menu { + max-width: calc(100vw - 48px); + } + + & .mdc-select__selected-text { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } } .wit-add-api { diff --git a/src/setup/App.vue b/src/setup/App.vue index 8e7efcb..2c1e370 100644 --- a/src/setup/App.vue +++ b/src/setup/App.vue @@ -31,9 +31,9 @@ :disabled=" isInstalling || !appDir || (manifestDirEditable && !manifestDir) " + :label="getText('buttonText_installApp')" @click="runInstall" > - {{ getText('buttonText_installApp') }} @@ -53,9 +53,9 @@ - {{ getText('buttonText_goBack') }}