Skip to content

Commit

Permalink
キャラ数が多いときにスクロールバーを表示する (VOICEVOX#749)
Browse files Browse the repository at this point in the history
* キャラ数が多いときにスクロールバーを表示する

* .transparent-backdropクラス追加、seamless除去

* 追加し忘れ
  • Loading branch information
Hiroshiba committed May 10, 2022
1 parent c3d67b1 commit f40f4ad
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 17 deletions.
3 changes: 1 addition & 2 deletions src/components/AcceptRetrieveTelemetryDialog.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<template>
<q-dialog
maximized
seamless
transition-show="jump-up"
transition-hide="jump-down"
class="accept-retrieve-telemetry-dialog"
class="accept-retrieve-telemetry-dialog transparent-backdrop"
v-model="modelValueComputed"
>
<q-layout container view="hHh Lpr lff" class="bg-background">
Expand Down
3 changes: 1 addition & 2 deletions src/components/AcceptTermsDialog.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<template>
<q-dialog
maximized
seamless
transition-show="jump-up"
transition-hide="jump-down"
class="accept-terms-dialog"
class="accept-terms-dialog transparent-backdrop"
v-model="modelValueComputed"
>
<q-layout container view="hHh Lpr lff" class="bg-background">
Expand Down
11 changes: 10 additions & 1 deletion src/components/CharacterOrderDialog.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<template>
<q-dialog
maximized
seamless
transition-show="jump-up"
transition-hide="jump-down"
class="transparent-backdrop"
v-model="modelValueComputed"
>
<q-layout container view="hHh Lpr lff" class="bg-background">
Expand Down Expand Up @@ -501,10 +501,19 @@ export default defineComponent({
width: 180px;
height: 100%;
display: flex;
flex-direction: column;
.character-order {
flex: 1;
display: flex;
flex-direction: column;
gap: 0.5rem;
height: 100%;
overflow-y: auto;
.character-order-item {
border-radius: 10px;
border: 2px solid colors.$display-light;
Expand Down
3 changes: 1 addition & 2 deletions src/components/DefaultStyleSelectDialog.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<template>
<q-dialog
maximized
seamless
transition-show="jump-up"
transition-hide="jump-down"
class="default-style-select-dialog"
class="default-style-select-dialog transparent-backdrop"
v-model="modelValueComputed"
>
<q-layout container view="hHh Lpr lff" class="bg-background">
Expand Down
3 changes: 1 addition & 2 deletions src/components/DictionaryManageDialog.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<template>
<q-dialog
maximized
seamless
transition-show="jump-up"
transition-hide="jump-down"
class="setting-dialog"
class="setting-dialog transparent-backdrop"
v-model="dictionaryManageDialogOpenedComputed"
>
<q-layout container view="hHh Lpr fFf" class="bg-background">
Expand Down
3 changes: 1 addition & 2 deletions src/components/HeaderBarCustomDialog.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<template>
<q-dialog
maximized
seamless
transition-show="jump-up"
transition-hide="jump-down"
class="header-bar-custom-dialog"
class="header-bar-custom-dialog transparent-backdrop"
v-model="headerBarCustomDialogOpenComputed"
>
<q-layout container view="hHh Lpr fFf" class="bg-background">
Expand Down
3 changes: 1 addition & 2 deletions src/components/HelpDialog.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<template>
<q-dialog
maximized
seamless
transition-show="jump-up"
transition-hide="jump-down"
class="help-dialog"
class="help-dialog transparent-backdrop"
v-model="modelValueComputed"
>
<q-layout container view="hHh Lpr lff">
Expand Down
3 changes: 1 addition & 2 deletions src/components/HotkeySettingDialog.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<template>
<q-dialog
maximized
seamless
transition-show="jump-up"
transition-hide="jump-down"
class="hotkey-setting-dialog"
class="hotkey-setting-dialog transparent-backdrop"
v-model="hotkeySettingDialogOpenComputed"
>
<q-layout container view="hHh Lpr lff" class="bg-background">
Expand Down
3 changes: 1 addition & 2 deletions src/components/SettingDialog.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<template>
<q-dialog
maximized
seamless
transition-show="jump-up"
transition-hide="jump-down"
class="setting-dialog"
class="setting-dialog transparent-backdrop"
v-model="settingDialogOpenedComputed"
>
<q-layout container view="hHh Lpr fFf" class="bg-background">
Expand Down
5 changes: 5 additions & 0 deletions src/styles/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ img {
}
}

.transparent-backdrop > .q-dialog__backdrop {
background: transparent; // デフォルトの設定だと全画面ダイアログが出る際に黒背景がちらつく
}

// Markdown
.markdown-body {
color: colors.$markdown-color;
background: colors.$markdown-background;
Expand Down

0 comments on commit f40f4ad

Please sign in to comment.