status component: Fix repeater name overflowing #383

Merged
floatingghost merged 1 commit from yukijoou/akkoma-fe:fix-status-usernames into develop 2024-06-25 21:34:16 +00:00
Contributor

If someone repeating a post had a long username, their username would overflow beyond the bounds of the post.

This fixes this isse by turning the bar displaying the username and repeat icon into a flexbox.

If someone repeating a post had a long username, their username would overflow beyond the bounds of the post. This fixes this isse by turning the bar displaying the username and repeat icon into a flexbox.
Oneric left a comment
Owner

Hi, thanks for the fix.

I’m far from an expert in CSS, but it seems to work fine in testing. Though i have some – potentially silly – questions. Could you explain those parts in more detail?

Hi, thanks for the fix. I’m far from an expert in CSS, but it seems to work fine in testing. Though i have some – potentially silly – questions. Could you explain those parts in more detail?
@ -87,7 +87,6 @@
.status-username {
white-space: nowrap;
overflow: hidden;
max-width: 85%;
Owner

this removes max-width for usernames above all statuses regardless of whether it’s the author’s name or a repeater name, but only new restrictions for repeater names are added

Are you sure this doesn't introduce any new overflow issues? Which other rule already ensures this?

this removes `max-width` for usernames above _all_ statuses regardless of whether it’s the author’s name or a repeater name, but only new restrictions for repeater names are added Are you sure this doesn't introduce any new overflow issues? Which other rule already ensures this?
Author
Contributor

I'm honestly not sure why I removed this in the first place, I think this is a leftover from an earlier attempt at fixing the bug. Reverting this change doesn't seem to cause any issue, so I'll just do that to avoid introducing regressions!

I'm honestly not sure why I removed this in the first place, I think this is a leftover from an earlier attempt at fixing the bug. Reverting this change doesn't seem to cause any issue, so I'll just do that to avoid introducing regressions!
yukijoou marked this conversation as resolved
@ -111,0 +110,4 @@
<div
class="repeat-text"
>
{{ $t('timeline.repeated') }}
Owner

This only includes the actual “repeated” text into the flex-shrink: 0; section. Testing the change shows the icon doesn’t get hidden regardless. Do you think it’d make sense to still include the icon into the flex-shrink: 0; section anyway to better communicate the desired output (not hiding the icon)?

This only includes the actual “repeated” _text_ into the `flex-shrink: 0;` section. Testing the change shows the icon doesn’t get hidden regardless. Do you think it’d make sense to still include the icon into the `flex-shrink: 0;` section anyway to better communicate the desired output (not hiding the icon)?
Author
Contributor

indeed, seems like this would be cleaner!

indeed, seems like this would be cleaner!
yukijoou marked this conversation as resolved
yukijoou force-pushed fix-status-usernames from 578b82f871
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
to 8c49474dea
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2024-05-17 23:25:57 +00:00
Compare
Author
Contributor

this should be all good now :) thanks for the review!

this should be all good now :) thanks for the review!
Oneric approved these changes 2024-05-18 00:37:52 +00:00
Oneric left a comment
Owner

Thank you

Thank you
floatingghost deleted branch fix-status-usernames 2024-06-25 21:34:16 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AkkomaGang/akkoma-fe!383
No description provided.