Skip to content

Commit

Permalink
fix(css): Several print style fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <jonas@freesources.org>
  • Loading branch information
mejo- committed Oct 30, 2024
1 parent e21f282 commit 9a22fe3
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Collectives.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default {
}

#content-vue {
display: block !important;
margin: unset;
}

/* TODO: remove first selector once removing LegacyEditor.vue+Reader.vue */
Expand All @@ -138,6 +138,7 @@ export default {
display: block;

div.ProseMirror {
height: unset;
margin-top: 0;
margin-bottom: 0;
padding-top: 0;
Expand Down
6 changes: 5 additions & 1 deletion src/components/Page/TextEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export default {
.collectives-text-container {
// Required for search dialog to stick to the bottom
flex-grow: 1;
overflow: scroll;
overflow: auto;
}

.text-container-heading {
Expand All @@ -210,6 +210,10 @@ export default {
.text-container-heading {
display: none !important;
}

.collectives-text-container {
overflow: visible;
}
}
</style>

Expand Down
6 changes: 6 additions & 0 deletions src/components/SearchDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ $button-gap: calc(var(--default-grid-baseline) * 3);
background-color: var(--color-main-background);
}

@media print {
.search-dialog__container {
display: none;
}
}

.search-dialog__info {
margin: 0 calc(var(--default-grid-baseline) * 6);
font-weight: bold;
Expand Down
8 changes: 7 additions & 1 deletion src/css/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
[data-collectives-el='editor'],
[data-collectives-el='reader'] {
max-width: unset;
min-width: var(--text-editor-max-width);
margin: auto;

.text-menubar {
Expand All @@ -77,8 +78,13 @@
}

@media print {
.sheet-view {
margin: unset !important;
}

.page-title, .document-status, .editor__content {
margin: 0 !important;
margin: unset !important;
max-width: unset !important;
min-width: var(--text-editor-max-width);
}
}

0 comments on commit 9a22fe3

Please sign in to comment.