fix repeater name overflowing

This commit is contained in:
Henry Jameson 2026-05-05 14:05:41 +03:00
commit accbfb2f2b
2 changed files with 46 additions and 44 deletions

View file

@ -23,6 +23,7 @@
.status-container { .status-container {
display: flex; display: flex;
padding: var(--status-margin); padding: var(--status-margin);
gap: var(--status-margin);
> * { > * {
min-width: 0; min-width: 0;
@ -50,12 +51,11 @@
} }
.left-side { .left-side {
margin-right: var(--status-margin); flex: 0 0 auto;
} }
.right-side { .right-side {
flex: 1; flex: 1 1 auto;
min-width: 0;
} }
.usercard { .usercard {
@ -230,29 +230,47 @@
} }
.repeat-info { .repeat-info {
display: flex;
align-items: center;
padding: 0.4em var(--status-margin); padding: 0.4em var(--status-margin);
.repeat-icon { .repeater-avatar {
color: var(--cGreen); flex: 0 0 1.5em;
border-radius: var(--roundness);
margin-left: 2em; // 3.5 (poster avatar size) - 1.5 (repeater avatar size)
width: 1.5em;
height: 1.5em;
} }
}
.repeater-avatar { .right-side {
border-radius: var(--roundness); display: flex;
margin-left: 2em; // 3.5 (poster avatar size) - 1.5 (repeater avatar size) flex: 1 1 auto;
width: 1.5em; overflow-x: hidden;
height: 1.5em; text-overflow: ellipsis;
} margin-right: 0;
gap: 0.5em;
.repeater-name { .repeater-name {
text-overflow: ellipsis; flex: 0 1 auto;
margin-right: 0; margin: 0;
}
.emoji { .repeat-label {
width: 1em; white-space: nowrap;
height: 1em; flex: 0 0 auto;
vertical-align: middle;
object-fit: contain; .repeat-icon {
vertical-align: middle;
color: var(--cGreen);
}
}
.emoji {
width: 1em;
height: 1em;
vertical-align: middle;
object-fit: contain;
}
} }
} }
@ -371,21 +389,4 @@
text-decoration: underline; text-decoration: underline;
} }
} }
@media all and (width <= 800px) {
.repeater-avatar {
margin-left: 20px;
}
.post-avatar {
width: 40px;
height: 40px;
// TODO define those other way somehow?
&.-compact {
width: 32px;
height: 32px;
}
}
}
} }

View file

@ -88,13 +88,14 @@
:to="retweeterProfileLink" :to="retweeterProfileLink"
>{{ retweeter }}</router-link> >{{ retweeter }}</router-link>
</bdi> </bdi>
{{ ' ' }} <div class="repeat-label">
<FAIcon <FAIcon
icon="retweet" icon="retweet"
class="repeat-icon" class="repeat-icon"
:title="$t('tool_tip.repeat')" :title="$t('tool_tip.repeat')"
/> />
{{ $t('timeline.repeated') }} {{ $t('timeline.repeated') }}
</div>
</div> </div>
</div> </div>