Skip to content

Commit

Permalink
fix(viewer): Amiral displays PDF without enouggh margin-top
Browse files Browse the repository at this point in the history
This is dued to viewer-toolbar padding-top set to flagship-top-height

Adding only top-height was not enough, the best optimization found, is x2
  • Loading branch information
trollepierre committed May 11, 2022
1 parent bd5907c commit 875ebba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react/Viewer/styles.styl
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ $viewerMarginTopMedium = $toolbarHeightMedium - $footerHeight

.viewer-pdfMobile
width 100%
height 'calc(100% - %s)' % $viewerHeightMedium
margin-top $viewerMarginTopMedium
height 'calc(100% - %s - var(--flagship-top-height))' % $viewerHeightMedium
margin-top 'calc(var(--flagship-top-height) + %s)' % $viewerMarginTopMedium

&--image
width 100%

0 comments on commit 875ebba

Please sign in to comment.