-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix viewer styling to adjust to upstream viewer changes #2221
Conversation
Signed-off-by: Julius Härtl <jus@bitgrid.net>
/backport to stable24 |
Filed nextcloud/viewer#1252 to discuss potential better options to let this styling be handled by the viewer itself. |
@@ -337,6 +337,11 @@ export default { | |||
flex-direction: column; | |||
background-color: var(--color-main-background); | |||
transition: opacity .25s; | |||
|
|||
.viewer & { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this &
needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vinicius73 It does not works without it 😁 because #richdocuments-wrapper
is not a parent of .viewer
in the DOM.
This rule applies to #richdocuments-wrapper
if found inside .viewer
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works fine!
@@ -337,6 +337,11 @@ export default { | |||
flex-direction: column; | |||
background-color: var(--color-main-background); | |||
transition: opacity .25s; | |||
|
|||
.viewer & { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vinicius73 It does not works without it 😁 because #richdocuments-wrapper
is not a parent of .viewer
in the DOM.
This rule applies to #richdocuments-wrapper
if found inside .viewer
.
/backport to stable24 |
The backport to stable24 failed. Please do this backport manually. |
Fixes #2190
While not nice, since the viewer added a
position: relative;
on the parent, this is currently the only way that we can overlay the viewer header and make the richdocuments frame full screen.