status component: Fix repeater name overflowing #383
No reviewers
Labels
No labels
a11y
Bug
Bug fix
Critical Priority
Documentation
Feature
Feature request
Held for next release cycle
High Priority
Low Priority
Medium Priority
Minor change
Translation/Locale
WIP
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma-fe#383
Loading…
Reference in a new issue
No description provided.
Delete branch "yukijoou/akkoma-fe:fix-status-usernames"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
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%;
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 addedAre you sure this doesn't introduce any new overflow issues? Which other rule already ensures this?
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!
@ -111,0 +110,4 @@
<div
class="repeat-text"
>
{{ $t('timeline.repeated') }}
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 theflex-shrink: 0;
section anyway to better communicate the desired output (not hiding the icon)?indeed, seems like this would be cleaner!
578b82f871
to8c49474dea
this should be all good now :) thanks for the review!
Thank you