Skip to content

Fix placement of icon in public share page for audio files - #16118

Merged
rullzer merged 2 commits into
masterfrom
fix-placement-of-icon-in-public-share-page-for-audio-files
Jun 27, 2019
Merged

Fix placement of icon in public share page for audio files#16118
rullzer merged 2 commits into
masterfrom
fix-placement-of-icon-in-public-share-page-for-audio-files

Conversation

@danxuliu

@danxuliudanxuliu commented Jun 27, 2019

Copy link
Copy Markdown
Member

How to test

  • Upload an audio file
  • Add link share for that file
  • Open the public share page

Before:
Public-Share-Audio-Before

After:
Public-Share-Audio-After

Is this worth a backport? If yes, up to which version?

The preview element in the public share page was always wrapped with a
link to download the file; now that link is included only if the "Hide
download" option of the share is not enabled.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
When the preview for audio files is used an HTML 5 audio element is
shown in the public share page. This element is added by the template,
so it is already there when the mimetype icon is added to the
"#imgframe" element. Instead of appended the icon is now prepended, so
it appears before the audio element (prepending instead of appending
should make no difference for other types of files, as in that case the
"#imgframe" element is empty). Besides that, the CSS was modified to
show the icon centered above the audio preview instead of next to it.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliudanxuliu added bug design Design, UI, UX, etc. 3. to review Waiting for reviews labels Jun 27, 2019
@danxuliudanxuliu added this to the Nextcloud 17 milestone Jun 27, 2019

@jancborchardtjancborchardt 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.

Nice! Not sure if we need backport, I would leave it.

@jancborchardtjancborchardt mentioned this pull request Jun 27, 2019
77 tasks
@skjnldsvskjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jun 27, 2019
@rullzer
rullzer merged commit f7ea09a into masterJun 27, 2019
@delete-merged-branch
delete-merged-branchBot deleted the fix-placement-of-icon-in-public-share-page-for-audio-files branch June 27, 2019 14:28
@danxuliu

Copy link
Copy Markdown
MemberAuthor

Argh, just for the record, the first commit should not have been part of this pull request, but #16114; I created the branch on top of #16114 instead of master 🤦‍♂️

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbugdesignDesign, UI, UX, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@danxuliu@jancborchardt@skjnldsv@rullzer