-
- {{ userSlug }}
- {{ userName | truncate(18) }}
+
+
+ {{ userSlug }}
+ {{ userName }}
-
-
-
-
-
-
-
+
+
+
+
+
+ {{ userName }}
@@ -104,7 +108,6 @@ export default {
props: {
user: { type: Object, default: null },
showAvatar: { type: Boolean, default: true },
- trunc: { type: Number, default: 18 }, // "-1" is no trunc
dateTime: { type: [Date, String], default: null },
showPopover: { type: Boolean, default: true },
},
@@ -162,27 +165,36 @@ export default {
flex-shrink: 0;
}
- > .user-info {
+ > .info {
display: flex;
flex-direction: column;
justify-content: center;
+ padding-left: $space-xx-small;
overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
- > .ds-text {
- display: flex;
- margin: 0 0 $space-xxx-small $space-xx-small;
- }
-
- > .user-slug {
- margin: 0 0 $space-xxx-small $space-xx-small;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- }
- .username {
color: $text-color-soft;
font-size: $font-size-small;
+
+ &.anonymous {
+ font-size: $font-size-base;
+ }
+
+ .slug {
+ color: $color-primary;
+ font-size: $font-size-base;
+ }
+ }
+
+ .text {
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+
+ > .ds-text {
+ display: inline;
+ }
}
}