Skip to content

Commit

Permalink
Fix help modal style with @nextcloud/vue >= 5.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <[email protected]>

Fixes: #2203
  • Loading branch information
mejo- authored and backportbot[bot] committed Apr 19, 2022
1 parent e959235 commit 13eeaf3
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions src/components/HelpModal.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<Modal size="large"
<Modal size="normal"
:title="t('text', 'Formatting help')"
@close="$emit('close')">
<h2>{{ t('text', 'Formatting help') }}</h2>
Expand Down Expand Up @@ -204,26 +204,15 @@ export default {

<style lang="scss" scoped>
::v-deep .modal-wrapper {
// TODO: can be removed once migrated to @nextcloud-vue >= 5.0
.prev, .next {
display: none !important;
}
.modal-container {
// TODO: can be removed once migrated to @nextcloud-vue >= 5.0
overflow: auto;
// Diverge from upstream modal styling
padding: 30px 40px 20px;
user-select: text;
}
// TODO: can be removed once migrated to @nextcloud-vue >= 5.0
// Make modal full screen on mobile
// Remove padding-right on mobile, screen might not be wide enough
@media only screen and (max-width: 512px) {
.modal-container {
position: absolute;
top: var(--header-height);
height: calc(100% - var(--header-height));
padding: 30px 0px 20px 40px;
}
}
}
Expand Down

0 comments on commit 13eeaf3

Please sign in to comment.