Skip to content

Commit

Permalink
feat: show full-screen dialogs in small screen
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <[email protected]>
  • Loading branch information
pedrolamas committed Mar 13, 2024
1 parent c8da496 commit 85a83e9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
20 changes: 18 additions & 2 deletions src/components/ui/AppDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
v-model="open"
:scrollable="scrollable"
v-bind="$attrs"
:fullscreen="isMobileViewport"
:transition="isMobileViewport ? 'dialog-bottom-transition' : undefined"
>
<v-form
ref="form"
Expand All @@ -24,6 +26,19 @@
<slot name="title">
<span class="focus--text">{{ title }}</span>
</slot>

<v-spacer />

<v-btn
fab
text
x-small
@click="open = false"
>
<v-icon>
$close
</v-icon>
</v-btn>
</v-card-title>

<v-card-subtitle
Expand Down Expand Up @@ -71,11 +86,12 @@
</template>

<script lang="ts">
import BrowserMixin from '@/mixins/browser'
import type { VForm } from '@/types'
import { Component, Vue, Prop, VModel, Ref, PropSync } from 'vue-property-decorator'
import { Component, Prop, VModel, Ref, PropSync, Mixins } from 'vue-property-decorator'
@Component({})
export default class AppDialog extends Vue {
export default class AppDialog extends Mixins(BrowserMixin) {
@VModel({ type: Boolean })
open?: boolean
Expand Down
2 changes: 1 addition & 1 deletion src/components/widgets/filesystem/FileSystemToolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
v-if="roots && roots.length > 1"
#extension
>
<v-tabs>
<v-tabs show-arrows>
<v-tab
v-for="(root, index) in roots"
:key="index"
Expand Down

0 comments on commit 85a83e9

Please sign in to comment.