diff --git a/frontend/src/app/shared/components/truncate/truncate.component.html b/frontend/src/app/shared/components/truncate/truncate.component.html index d75b683f2..0ec579dad 100644 --- a/frontend/src/app/shared/components/truncate/truncate.component.html +++ b/frontend/src/app/shared/components/truncate/truncate.component.html @@ -1,4 +1,5 @@ + @@ -11,11 +12,10 @@ - + {{text.slice(0,-lastChars)}}{{text.slice(-lastChars)}} - {{text.slice(lastChars)}}{{text.slice(0,lastChars)}} \ No newline at end of file diff --git a/frontend/src/app/shared/components/truncate/truncate.component.scss b/frontend/src/app/shared/components/truncate/truncate.component.scss index 97233e5d6..c5179384f 100644 --- a/frontend/src/app/shared/components/truncate/truncate.component.scss +++ b/frontend/src/app/shared/components/truncate/truncate.component.scss @@ -32,4 +32,12 @@ .hidden { color: transparent; position: absolute; -} \ No newline at end of file + max-width: 300px; + overflow: hidden; +} + +@media (max-width: 567px) { + .hidden { + max-width: 150px; + } +}