Skip to content

Commit

Permalink
fix: update UI layout
Browse files Browse the repository at this point in the history
  • Loading branch information
dessant committed Jan 27, 2020
1 parent 7fc0e96 commit 72aeceb
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 15 deletions.
55 changes: 42 additions & 13 deletions src/options/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@
<v-button
:outlined="true"
:disabled="!witSpeechApiLang"
:label="getText('buttonText_addApi')"
@click="addWitSpeechApi"
>
{{ getText('buttonText_addApi') }}
</v-button>
</div>
</div>
Expand Down Expand Up @@ -170,9 +170,9 @@
class="download-button"
:unelevated="true"
:disabled="!clientAppDownloadUrl"
:label="getText('buttonText_downloadApp')"
@click="$refs.dlLink.click()"
>
{{ getText('buttonText_downloadApp') }}
</v-button>
<a
ref="dlLink"
Expand Down Expand Up @@ -349,25 +349,27 @@ export default {
<style lang="scss">
$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,
Expand All @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/setup/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
:disabled="
isInstalling || !appDir || (manifestDirEditable && !manifestDir)
"
:label="getText('buttonText_installApp')"
@click="runInstall"
>
{{ getText('buttonText_installApp') }}
</v-button>
</div>

Expand All @@ -53,9 +53,9 @@
<v-button
class="button error-button"
:unelevated="true"
:label="getText('buttonText_goBack')"
@click="isInstallError = false"
>
{{ getText('buttonText_goBack') }}
</v-button>
</div>
</div>
Expand Down

0 comments on commit 72aeceb

Please sign in to comment.