Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ const onIFrameLoaded = async (event: { query: Record<string, string> }) => {
routerLocation,
currentQuery: JSON.stringify(currentRoute.query),
targetQuery: JSON.stringify(routerLocation.query),
})
}
)
try {
await router.push(routerLocation)
} catch (error) {
Expand Down Expand Up @@ -160,6 +161,16 @@ router.onReady(async () => {
// DO NOT ALLOW THIS!
overflow: hidden !important;
}
// NcAppContent (@nextcloud/vue) sets `flex-basis: 100vw` on .app-content
// via a scoped style. In a column flex container flex-basis controls the
// *height* axis, so on narrow portrait screens main#app-content-vue ends
// up with height ≈ viewport-width, making the embedded Roundcube iframe
// appear square (e.g. 466 × 482 px on a 482 × 835 device).
:deep(.#{$roundCubeAppName}-content-container.app-content) {
flex: 1 1 auto !important;
flex-basis: auto !important;
min-height: 0 !important;
}
.empty-content::v-deep {
h2 ~ p {
text-align: center;
Expand Down