From 06ec4bdd15cdd1e938ec1744784cd2993aed9809 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 5 May 2021 09:44:24 +0200 Subject: Fix miniature avatar size --- client/src/sass/include/_miniature.scss | 3 +-- client/src/sass/include/_mixins.scss | 7 +++++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'client/src/sass/include') diff --git a/client/src/sass/include/_miniature.scss b/client/src/sass/include/_miniature.scss index fb504906c..070aa3398 100644 --- a/client/src/sass/include/_miniature.scss +++ b/client/src/sass/include/_miniature.scss @@ -3,9 +3,8 @@ @mixin miniature-name { @include ellipsis-multiline(1.1em, 2); + @include peertube-word-wrap(false); - word-break: break-all; - word-wrap: break-word; transition: color 0.2s; font-weight: $font-semibold; color: pvar(--mainForegroundColor); diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index 6d1e37bb6..b2083e516 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss @@ -50,11 +50,14 @@ } } -@mixin peertube-word-wrap { +@mixin peertube-word-wrap ($with-hyphen: true) { word-break: break-word; word-wrap: break-word; overflow-wrap: break-word; - hyphens: auto; + + @if $with-hyphen { + hyphens: auto; + } } @mixin apply-svg-color ($color) { -- cgit v1.2.3