logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe
commit: 74cf60109417b7480f62010567d5aa8cbb797ef9
parent: 92380652feb83c6a4dde5ca3bac35ff4b409fa2d
Author: Shpuld Shpludson <shp@cock.li>
Date:   Thu,  8 Aug 2019 10:10:23 +0000

Merge branch '627' into 'develop'

Fix "Post status modal disappearing on mobile landscape mode"

Closes #627

See merge request pleroma/pleroma-fe!899

Diffstat:

Msrc/App.vue1+
Msrc/components/mobile_nav/mobile_nav.js4+---
Msrc/components/mobile_nav/mobile_nav.vue1-
Msrc/components/mobile_post_status_modal/mobile_post_status_modal.vue11++++++++---
4 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/src/App.vue b/src/App.vue @@ -107,6 +107,7 @@ :floating="true" class="floating-chat mobile-hidden" /> + <MobilePostStatusModal /> <UserReportingModal /> <portal-target name="modal" /> </div> diff --git a/src/components/mobile_nav/mobile_nav.js b/src/components/mobile_nav/mobile_nav.js @@ -1,14 +1,12 @@ import SideDrawer from '../side_drawer/side_drawer.vue' import Notifications from '../notifications/notifications.vue' -import MobilePostStatusModal from '../mobile_post_status_modal/mobile_post_status_modal.vue' import { unseenNotificationsFromStore } from '../../services/notification_utils/notification_utils' import GestureService from '../../services/gesture_service/gesture_service' const MobileNav = { components: { SideDrawer, - Notifications, - MobilePostStatusModal + Notifications }, data: () => ({ notificationsCloseGesture: undefined, diff --git a/src/components/mobile_nav/mobile_nav.vue b/src/components/mobile_nav/mobile_nav.vue @@ -70,7 +70,6 @@ ref="sideDrawer" :logout="logout" /> - <MobilePostStatusModal /> </div> </template> diff --git a/src/components/mobile_post_status_modal/mobile_post_status_modal.vue b/src/components/mobile_post_status_modal/mobile_post_status_modal.vue @@ -34,14 +34,19 @@ @import '../../_variables.scss'; .post-form-modal-view { - max-height: 100%; - display: block; + align-items: flex-start; } .post-form-modal-panel { flex-shrink: 0; - margin: 25% 0 4em 0; + margin-top: 25%; + margin-bottom: 2em; width: 100%; + max-width: 700px; + + @media (orientation: landscape) { + margin-top: 8%; + } } .new-status-button {