Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

update below title slot styling #688

Merged
merged 4 commits into from
Aug 5, 2024

Conversation

AllanOXDi
Copy link
Member

@AllanOXDi AllanOXDi commented Jul 25, 2024

Description

Issue addressed

Addresses #PR# HERE

Before/after screenshots

Changelog

[#688]

Steps to test

  1. Step 1
  2. Step 2
  3. ...

(optional) Implementation notes

At a high level, how did you implement this?

Does this introduce any tech-debt items?

Testing checklist

  • Contributor has fully tested the PR manually
  • If there are any front-end changes, before/after screenshots are included
  • Critical and brittle code paths are covered by unit tests
  • The change is described in the changelog section above

Reviewer guidance

  • Is the code clean and well-commented?
  • Are there tests for this change?
  • Are all UI components LTR and RTL compliant (if applicable)?
  • Add other things to check for here

After review

  • The changelog item has been pasted to the CHANGELOG.md

Comments

@AllanOXDi AllanOXDi requested a review from MisRob July 25, 2024 17:28
@AllanOXDi AllanOXDi changed the title update bellow title slot styling update below title slot styling Jul 25, 2024
@MisRob MisRob self-assigned this Jul 25, 2024
@@ -34,7 +34,7 @@
as progressive loading experience.
-->
<span
v-if="$slots.thumbnailPlaceholder"
v-if="$slots.thumbnailPlaceholder && !thumbnailSrc"
Copy link
Member

Choose a reason for hiding this comment

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

Even though the major function of the placeholder background and this slot's content is to serve as placeholder when the thumbnail is not available at all, it also has the additional function to show at least something while the image is loading over it. I've tried to explain with the comment above on line 33.

Adding this condition would break this additional feature. I assume there was a situation where not having the condition caused some unexpected problems - could you elaborate what was the motivation for this change? Perhaps we can think of a solution that would still allow us to keep the progressive loading experience.

Copy link
Member Author

Choose a reason for hiding this comment

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

The motivation around this was to prevent the placeholder from showing when the thumbnailSrc is provided.

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually - on a second thought . we actually don't need both. This will do v-if="$slots.thumbnailPlaceholder"

Copy link
Member

Choose a reason for hiding this comment

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

was to prevent the placeholder from showing when the thumbnailSrc is provided

Ah okay, well we'd want to show it even in this case, if the slot is provided, for the reasons I mentioned above - to achieve something being displayed below the image when it's still loading, for example on slower networks

So if

This will do v-if="$slots.thumbnailPlaceholder"

is sufficient, let's just keep it that way.

@AllanOXDi AllanOXDi requested a review from MisRob August 1, 2024 14:22
Copy link
Member

@MisRob MisRob left a comment

Choose a reason for hiding this comment

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

Good to go

@AllanOXDi AllanOXDi merged commit 6608f25 into learningequality:develop Aug 5, 2024
8 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants