truncate overflowing user name

This commit is contained in:
Alina Beck 2020-01-21 11:58:54 +03:00
parent 7b73c990ec
commit c5af2dbfb4
2 changed files with 13 additions and 3 deletions

View File

@ -315,7 +315,6 @@ $z-index-dropdown: 8888;
$z-index-page-submenu: 2500;
$z-index-page-header: 2000;
$z-index-page-sidebar: 1500;
$z-index-hc-post-card-link: 5;
$z-index-sticky: 100;
$z-index-post-card-link: 5;

View File

@ -148,15 +148,25 @@ export default {
</script>
<style lang="scss">
.trigger {
max-width: 100%;
}
.user-teaser {
display: flex;
flex-wrap: nowrap;
z-index: $z-index-post-card-link;
position: relative;
> .user-avatar {
flex-shrink: 0;
}
> .user-info {
display: flex;
flex-direction: column;
justify-content: center;
overflow: hidden;
> .ds-text {
display: flex;
@ -164,9 +174,10 @@ export default {
}
> .user-slug {
white-space: nowrap;
text-overflow: ellipsis;
margin: 0 0 $space-xxx-small $space-xx-small;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.username {