Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Tweaks to the Image Details page #1112

Merged
merged 7 commits into from Mar 18, 2022
Merged

Tweaks to the Image Details page #1112

merged 7 commits into from Mar 18, 2022

Conversation

krysal
Copy link
Member

@krysal krysal commented Mar 11, 2022

Fixes

Fixes #1111 by @krysal

Description

This PR fixes the font size of the license description and breaks words in the attribution HTML tab to avoid causing horizontal scrolling when the page is on small screens.

Testing Instructions

Follow steps on issues and compare with Figma mockups.

Checklist

  • My pull request has a descriptive title (not a vague title like Update index.md).
  • My pull request targets the default branch of the repository (main) or a parent feature branch.
  • My commit messages follow best practices.
  • My code follows the established code style of the repository.
  • [-] I added or updated tests for the changes I made (if applicable).
  • [-] I added or updated documentation (if applicable).
  • I tried running the project locally and verified that there are no visible errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.


Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

@krysal krysal requested a review from a team as a code owner March 11, 2022 19:03
@krysal krysal self-assigned this Mar 11, 2022
@krysal krysal requested review from obulat and dhruvkb March 11, 2022 19:03
@dhruvkb dhruvkb added this to Needs review in Openverse PRs Mar 11, 2022
@dhruvkb dhruvkb added 🕹 aspect: interface Concerns end-users' experience with the software 🛠 goal: fix Bug fix 🟨 priority: medium Not blocking but should be addressed soon labels Mar 11, 2022
Copy link
Member

@zackkrida zackkrida left a comment

Choose a reason for hiding this comment

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

This looks good, thank you! It's tricky, the designs use a base font of 14px, but we can't set it globally because it seems to alter the entire page layout. Hopefully this is the last component that needs text-base manually specified.

@krysal krysal enabled auto-merge (squash) March 11, 2022 19:35
@fcoveram
Copy link

It looks great ✨

I noticed one spacing mistake on desktop, but not sure if it belongs to this work.

The spacing between license description and between each license icon definition should be 16px. I played with the inspector and it looks better with 8px instead. However, there is a top margin in the first item that adds unnecessary spacing, making it look unbalanced. Here is what I see.

I would say that setting a bottom margin value instead of a top margin one solves the problem.

@@ -60,12 +60,12 @@

<div class="mb-4 min-h-[7rem]">
<VDmcaNotice
v-if="selectedReason === reasons.DMCA"
v-if="media.foreign_landing_url && selectedReason === reasons.DMCA"
Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for fixing this! The warnings were bothering me. I guess they are fired before the 'image' object is loaded, when the image detail is pre-fetched.

Copy link
Contributor

@obulat obulat left a comment

Choose a reason for hiding this comment

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

Looks great!
I have only noticed one small thing: the Report content button is charcoal-70 in the mockups, and is just charcoal currently. It is out of scope for this PR, though, so feel free to merge without changing.

Openverse PRs automation moved this from Needs review to Reviewer approved Mar 18, 2022
@krysal krysal merged commit ab53a6f into main Mar 18, 2022
Openverse PRs automation moved this from Reviewer approved to Merged! Mar 18, 2022
@krysal krysal deleted the img_details_tweaks branch March 18, 2022 02:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🕹 aspect: interface Concerns end-users' experience with the software 🛠 goal: fix Bug fix 🟨 priority: medium Not blocking but should be addressed soon
Projects
No open projects
Openverse PRs
  
Merged!
Development

Successfully merging this pull request may close these issues.

Wrong font size on image details page and has horizontal scrolling on mobile
5 participants