mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-03-01 12:44:37 +00:00
shorten long group names
This commit is contained in:
parent
9548ad6e31
commit
f62629e92e
@ -127,5 +127,25 @@ export default {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
|
||||
.group-info {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
|
||||
> .text {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.group-link {
|
||||
color: $color-primary;
|
||||
font-size: $font-size-base;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -27,15 +27,10 @@
|
||||
<span class="name">{{ userName }}</span>
|
||||
</user-teaser-helper>
|
||||
<span v-if="wide"> </span>
|
||||
<span v-if="group">
|
||||
<span class="text">
|
||||
{{ $t('group.in') }}
|
||||
</span>
|
||||
<nuxt-link :to="groupLink">
|
||||
<span class="text">
|
||||
<span class="slug">{{ groupSlug }}</span>
|
||||
<span v-if="!userOnly" class="name">{{ groupName }}</span>
|
||||
</span>
|
||||
<span v-if="group" class="group-info">
|
||||
<span class="text">{{ $t('group.in') }}</span>
|
||||
<nuxt-link :to="groupLink" class="group-link" :title="groupSlug">
|
||||
{{ groupName }}
|
||||
</nuxt-link>
|
||||
</span>
|
||||
<!-- eslint-disable-next-line prettier/prettier -->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user