Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Color by status #672

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

AlexPerathoner
Copy link
Contributor

Changes made

Added background color on Poster based on watch status

immagine

@AlexPerathoner AlexPerathoner force-pushed the feature/color-by-status branch from af5cd41 to 10602b5 Compare November 5, 2024 23:38
prefer pixels, so changed to use that for `bottom`. Calculating width so it can be the same spacing around all edges from 100%.
Copy link
Member

@IRHM IRHM left a comment

Choose a reason for hiding this comment

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

Hi @AlexPerathoner thank you for implementing this!

I had some comments on some of the code. One of them I was unsure of if I was testing correctly, if it fixed anything im not seeing?

When I find some more time, I wanted to look into the colors too. I may just tweak around with them to see if we can get them to hide less of the poster while still being legible (like the old color). If not, I may implement a setting to allow toggling this on/off.

@@ -26,8 +35,8 @@
}
</script>

{#if ($page.url?.pathname === "/" || $page.url?.pathname.startsWith("/search/")) && details && dve && dve.length > 0}
Copy link
Member

Choose a reason for hiding this comment

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

Removing the page check here introduces a bug where:

  1. Enable the extra details
  2. Go to another users watched list
  3. Can see extra details on their page, but can't view to toggle this off/on

I think we could add it back in?

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 see. I had added it in to make the extra details appear on all lists of movies where I could be interested in the color by status. That's also why on the other hand I then added the line above.
I'll search for a different way to do it

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good @AlexPerathoner, do you think we should just support showing ExtraDetails for posters when viewing other users lists? In that case we could just show the ExtraDetails button in nav on that page too, but I'm not sure if that could get confusing for users (if it's showing, it may seem like it's because it is on their list too), what do you think?

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 personally don't think it would be confusing. After all it's just some extra details on items, not necessarily from their own list. Also with the color they can immediately see if it is indeed on their list

Copy link
Member

Choose a reason for hiding this comment

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

@AlexPerathoner That sounds good to me

<div class={`menu${$page.url?.pathname.startsWith("/search/") ? " on-search-page" : ""}`}>
<div
class={`menu${$page.url?.pathname.startsWith("/search/") ? " on-search-page" : ""}`}
style="right: {$page.url?.pathname === '/' || $page.url?.pathname.startsWith('/search/')
Copy link
Member

Choose a reason for hiding this comment

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

Was this to fix an issue? (I couldn't find if there was an issue with old code to review)

@IRHM IRHM self-assigned this Dec 2, 2024
@IRHM IRHM added the enhancement New feature or request label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants