Skip to content

Commit

Permalink
Make paginated modals and ChatEditModal fullscreen on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
nkonev committed Jan 12, 2025
1 parent 0ae72ec commit 22f1a70
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 17 deletions.
22 changes: 12 additions & 10 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -966,16 +966,6 @@ html {
}
}
// to check those 2 bugs:
// Open ChatEditModal of a chat with an avatar
// reverts 3.7.4 https://github.com/vuetifyjs/vuetify/commit/42a12dd89da2e7e5ea5f6a3bc7611fb2e9f2563a#diff-0ca827fe1439dde86f60164ea243a0e4c495fa2e03606f4dd802703d1a0d30efR58
.v-dialog--scrollable {
> .v-overlay__content {
max-height: calc(100% - 48px);
}
}
// reverts some changes from ~3.7.0 (from F12)
.my-actions .v-btn ~ .v-btn:not(.v-btn-toggle .v-btn) {
margin-inline-start: .5rem;
Expand All @@ -986,6 +976,18 @@ html {
<style lang="stylus">
@import "constants.styl"
@media screen and (min-width: $mobileWidth) {
// to check those 2 bugs:
// Open ChatEditModal of a chat with an avatar
// reverts 3.7.4 https://github.com/vuetifyjs/vuetify/commit/42a12dd89da2e7e5ea5f6a3bc7611fb2e9f2563a#diff-0ca827fe1439dde86f60164ea243a0e4c495fa2e03606f4dd802703d1a0d30efR58
.v-dialog--scrollable {
> .v-overlay__content {
max-height: calc(100% - 48px);
}
}
}
.colored-link {
color: $linkColor;
text-decoration none
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/ChatEditModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<v-row justify="center">
<input id="image-input-chat-avatar" type="file" style="display: none;" accept="image/*"/>

<v-dialog v-model="show" max-width="640" :persistent="isNew" scrollable>
<v-dialog v-model="show" max-width="640" :persistent="isNew" scrollable :fullscreen="isMobile()">
<v-card :title="getTitle()">
<v-card-text :class="isMobile() ? ['ma-0', 'mx-2', 'pa-0', 'pt-2'] : ['ma-0', 'mx-4', 'pa-0', 'pt-2']">
<v-form
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/ChatParticipantsModal.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<v-row justify="center">
<v-dialog v-model="show" max-width="740" scrollable :persistent="hasSearchString() || chatStore.showAlertDebounced">
<v-dialog v-model="show" max-width="740" scrollable :persistent="hasSearchString() || chatStore.showAlertDebounced" :fullscreen="isMobile()">
<v-card>
<v-card-title class="d-flex align-center ml-2">
<template v-if="showSearchButton">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/FileListModal.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<v-row justify="center">
<v-dialog v-model="show" max-width="800" height="100%" scrollable :persistent="hasSearchString()">
<v-dialog v-model="show" max-width="800" height="100%" scrollable :persistent="hasSearchString()" :fullscreen="isMobile()">
<v-card>
<v-card-title class="d-flex align-center ml-2">
<template v-if="showSearchButton">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/MessageEditMediaModal.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<v-row justify="center">
<v-dialog v-model="show" max-width="800" height="100%" scrollable>
<v-dialog v-model="show" max-width="800" height="100%" scrollable :fullscreen="isMobile()">
<v-card :title="title()">
<v-card-text>
<v-row
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/NotificationsModal.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<v-row justify="center">
<v-dialog v-model="show" max-width="640" scrollable>
<v-dialog v-model="show" max-width="640" scrollable :fullscreen="isMobile()">
<v-card>
<v-card-title class="d-flex align-center ml-2 mt-2">
{{ $vuetify.locale.t('$vuetify.notifications') }}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/PinnedMessagesModal.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<v-row justify="center">
<v-dialog v-model="show" max-width="640" scrollable>
<v-dialog v-model="show" max-width="640" scrollable :fullscreen="isMobile()">
<v-card :title="$vuetify.locale.t('$vuetify.pinned_messages_full')">
<v-card-text class="ma-0 pa-0">
<v-list class="pb-0" v-if="!loading">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/PublishedMessagesModal.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<v-row justify="center">
<v-dialog v-model="show" max-width="640" scrollable>
<v-dialog v-model="show" max-width="640" scrollable :fullscreen="isMobile()">
<v-card :title="$vuetify.locale.t('$vuetify.published_messages_full')">
<v-card-text class="ma-0 pa-0">
<v-list class="pb-0" v-if="!loading">
Expand Down

0 comments on commit 22f1a70

Please sign in to comment.