Skip to content

Fix viewer styling to adjust to upstream viewer changes#2221

Merged
juliusknorr merged 1 commit into
masterfrom
bugfix/2190
May 17, 2022
Merged

Fix viewer styling to adjust to upstream viewer changes#2221
juliusknorr merged 1 commit into
masterfrom
bugfix/2190

Conversation

@juliusknorr

Copy link
Copy Markdown
Member

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.

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr juliusknorr added bug Something isn't working 3. to review Ready to be reviewed labels May 17, 2022
@juliusknorr

Copy link
Copy Markdown
Member Author

/backport to stable24

@juliusknorr

Copy link
Copy Markdown
Member Author

Filed nextcloud/viewer#1252 to discuss potential better options to let this styling be handled by the viewer itself.

Comment thread src/view/Office.vue
background-color: var(--color-main-background);
transition: opacity .25s;

.viewer & {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this & needed?

@julien-nc julien-nc May 17, 2022

Copy link
Copy Markdown
Member

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.

@julien-nc julien-nc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine!

Comment thread src/view/Office.vue
background-color: var(--color-main-background);
transition: opacity .25s;

.viewer & {

@julien-nc julien-nc May 17, 2022

Copy link
Copy Markdown
Member

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.

@juliusknorr

Copy link
Copy Markdown
Member Author

/backport to stable24

@backportbot-nextcloud

Copy link
Copy Markdown

The backport to stable24 failed. Please do this backport manually.

@kkofler kkofler mentioned this pull request May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Ready to be reviewed bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Viewer integration broken on master

3 participants