Skip to content

Conversation

heyhippari
Copy link
Contributor

@heyhippari heyhippari commented Dec 16, 2024

Fixed

  • Fixed: Fixed the CSS for the publisher flipper

image

As mentioned on Discord, one caveat is that the width will be based upon the first publisher.

@majora2007
Copy link
Member

Just to let you know, I'm still planning to merge this in. Just not yet ready to do the testing to see if the width issue will be impactful.

@majora2007 majora2007 moved this from In progress to To do in Kavita May 7, 2025
@majora2007
Copy link
Member

@MrRobotjs since you like CSS, could you look into this PR and see if you can remove the one constraint that's holding me from merging in (aka the width issue)?

@MrRobotjs
Copy link
Contributor

I tested this and images that have a longer width are still square. I think the proper fix would be to do what @therobbiedavis proposed here #3451 (comment) , i was already implementing this but I tried the idea of only showing the text and on hover a tooltip with the image will appear above instead. But I can also just make it so only the image appears if available or text if no image is available.

- Adjusted for dynamic publish width, but fixed height
- Adjusted divs for max-content
- Fixed flipper positioning
@therobbiedavis
Copy link
Collaborator

@heyhippari @MrRobotjs @majora2007 I have fixed this up according to the comments.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes CSS styling issues for the publisher flipper component by updating the layout, positioning, and sizing properties. The changes enable the publisher flipper to properly display with correct dimensions and positioning.

Key Changes

  • Replaced static publisher display with an active publisher flipper component
  • Modified CSS to use content-based width instead of fixed width
  • Updated image dimensions and positioning properties for better visual alignment

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
metadata-detail-row.component.html Uncommented publisher flipper component and commented out static publisher display
publisher-flipper.component.scss Updated width calculation, positioning, and transform properties for proper flipper animation
publisher-flipper.component.html Changed image dimensions from fixed 32px to auto width with 24px height

@Fesaa
Copy link
Member

Fesaa commented Jul 26, 2025

Visually, it looks good now. But there seems to be a bug in the flipper code, I only ever see it flipping through 2 or 3 publishers. I have 5 assigned now, but I can only see the first two, sometimes it seems to switch which publishers it flips through, but I don't know when

2025-07-26.17-41-09.mp4

@majora2007
Copy link
Member

Looks like there may be some leftover logic for me to handle. I can take care of the rest of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To do
Development

Successfully merging this pull request may close these issues.

5 participants