Argus icon indicating copy to clipboard operation
Argus copied to clipboard

Idea: Allow for more places to break a long line in a field in the incidents page

Open hmpf opened this issue 5 years ago • 3 comments

It's not really feasible right now to look at a very narrow view of the frontend because domains aren't split-up over multiple lines.

image

This can be solved by adding U+200B ZERO WIDTH SPACE around dots at least in the source column? We then get sias-vk . c . uninett . no, lots of extra places to break the line

hmpf avatar Nov 27 '20 07:11 hmpf

It might be possible to manipulate the selection on Copy: https://stackoverflow.com/questions/2026335/how-to-add-extra-info-to-copied-web-text in order to strip away the zero width chars.

hmpf avatar Nov 27 '20 07:11 hmpf

HTML-wise it might work to have each subpart in their own <span> also. That'll be stripped on plaintext copy.

hmpf avatar Dec 08 '20 14:12 hmpf

There might exist some library in Javascript that already does this effciently, changing title.

hmpf avatar Aug 30 '21 10:08 hmpf

Text overflow and word break behaviours can easily be configured using tailwind, see https://tailwindcss.com/docs/word-break and https://tailwindcss.com/docs/text-overflow

podliashanyk avatar Jul 30 '25 10:07 podliashanyk