Skip to content

Commit

Permalink
fix(printing): Fix long emails getting cut for print
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
  • Loading branch information
ChristophWurst authored and backportbot[bot] committed Jul 11, 2024
1 parent 24935ed commit e73f285
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion src/views/Home.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<NcContent app-name="mail">
<NcContent app-name="mail" class="mail-content">
<Navigation />
<Outbox v-if="$route.name === 'outbox'" />
<MailboxThread v-else-if="activeAccount"
Expand Down Expand Up @@ -166,7 +166,28 @@ export default {
</script>
<style lang="scss">
@media print {
body {
/*
* Nextcloud uses an inner scrolling but we need the
* full page to scroll for print
*/
position: relative;
height: initial;
}
}
</style>
<style lang="scss" scoped>
@media print {
.mail-content {
height: initial;
/* needs important because of a more specific selector */
position: relative !important;
}
}
:deep(.app-content-details) {
margin: 0 auto;
max-width: 900px;
Expand Down

0 comments on commit e73f285

Please sign in to comment.