Merge pull request #856 from h3poteto/account-ellipsis

fix: Hide long username and instance name in side menu
This commit is contained in:
AkiraFukushima 2019-03-20 22:48:41 +09:00 committed by GitHub
commit d9b40a56b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -6,7 +6,7 @@
<div class="avatar" v-if="collapse">
<img :src="account.avatar" />
</div>
<div v-else>
<div class="acct" v-else>
@{{ account.username }}
<span class="domain-name">{{ account.domain }}</span>
</div>
@ -202,6 +202,12 @@ export default {
align-items: center;
justify-content: center;
.acct {
max-width: 117px;
overflow: hidden;
text-overflow: ellipsis;
}
.el-dropdown-link {
cursor: pointer;
color: #dcdfe6;