Skip to content

Commit

Permalink
fixed publi bug
Browse files Browse the repository at this point in the history
disabled download pdf for now, need to add a stream on link
  • Loading branch information
louis-ev committed May 31, 2018
1 parent e1e1ac4 commit b3a1529
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
8 changes: 4 additions & 4 deletions public/src/vue/components/Publication.vue
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export default {
}
},
advanced_options: true,
advanced_options: false,
new_publiname: this.publication.name,
Expand All @@ -338,7 +338,7 @@ export default {
page_currently_active: 0,
preview_mode: this.$root.state.mode !== 'live',
zoom: window.innerWidth <= 1024 ? 0.8 : 1,
zoom: 1,
zoom_min: 0.4,
zoom_max: 1.4,
Expand All @@ -363,7 +363,7 @@ export default {
if(this.$root.state.mode === 'print_publication') {
this.preview_mode = true;
document.getElementsByTagName('body')[0].style.width = `${this.publications_options.width}mm`;
document.getElementsByTagName('body')[0].style.height = `${this.publications_options.height}mm`;
document.getElementsByTagName('body')[0].style.height = `${this.publications_options.height - 2}mm`;
}
},
beforeDestroy() {
Expand Down Expand Up @@ -725,7 +725,7 @@ export default {
if(this.$root.state.mode === 'print_publication') {
return `
width: ${page.width}mm;
height: ${page.height - 1}mm;
height: ${page.height - 2}mm;
`;
} else {
return `
Expand Down
4 changes: 2 additions & 2 deletions public/src/vue/components/modals/Export.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
</button>

<div v-if="pdf_request_status === 'generated'">
<a
<!-- <a
v-if="link_to_pdf !== false"
class="buttonLink margin-left-none"
:href="link_to_pdf" target="_blank" download="">
{{ $t('download') }}
</a>
</a> -->
<a
v-if="path_to_pdf !== false && $root.state.is_electron"
:href="path_to_pdf" target="_blank"
Expand Down
10 changes: 2 additions & 8 deletions public/src/vue/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -1903,14 +1903,6 @@ body {
SPECIAL MODES
**********************************************************/
body[data-mode="print_publication"] {
.m_publicationview--pages--pageContainer {
&::before {
display: none !important;
}
}

}

body[data-mode="export_publication"] {

Expand Down Expand Up @@ -1944,6 +1936,7 @@ body[data-mode="export_publication"] {
.m_publicationFooter,
.controlFrame,
.publiButton,
.m_publicationview--pages--pageContainer::before,
.m_mediaPublication--buttons,
.m_page--margins_rule,
.m_page--grid,
Expand Down Expand Up @@ -1977,6 +1970,7 @@ body[data-mode="export_publication"] {
.m_publicationview {
position: relative;
height: auto;
padding: 0;
background-color: transparent !important;
}
.m_publicationview--pages {
Expand Down

0 comments on commit b3a1529

Please sign in to comment.