Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions apps/files_sharing/css/public.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/files_sharing/css/public.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions apps/files_sharing/css/public.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ $download-button-section-height: 200px;
margin-right: auto;
}

#imgframe:has(audio) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is such a useful selector 😍

Copy link
Member

Choose a reason for hiding this comment

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

Just a note that firefox doesn't support this yet
https://caniuse.com/?search=has

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is unfortunate! Do you have an idea for a better selector that works everywhere or maybe does @skjnldsv has one?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think you could also apply the margin on the .plyr element. That only shows when there's an audio file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think you could also apply the margin on the .plyr element. That only shows when there's an audio file.

No, it also shows if there is a video where we do not want a margin... So what could be a solution to this?

Copy link
Contributor

Choose a reason for hiding this comment

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

We can add a data-handler property to the #viewer element just like we do in the modal.

That will allow styling depending on the selected handler (audio, video, image, text, ...)

Copy link
Contributor

Choose a reason for hiding this comment

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

// for speed settings
margin-top: 400px;
}

#imgframe .plyr {
top: 0px !important;
}

#imgframe .text-preview {
display: inline-block;
position: relative;
Expand Down
8 changes: 8 additions & 0 deletions apps/files_sharing/css/publicView.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/files_sharing/css/publicView.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.