Open kkosiorowska opened 1 year ago
I poked at this a little, it takes some elbow grease, but the short version is:
overflow: hidden
on .asset_left
and .asset_left_content
to give flexbox the understanding it needs to truncate..asset_amount
to have text-overflow: ellipsis
and white-space: nowrap
(I think this is what .ellipsis
provides). We also need to drop overflow-wrap
and word-break
there.
Currently, if the name is too long we use the
trimWithEllipsis
function to display it correctly in the container. We should do this with aflexbox
using the prioritization of the elements in the container.Originally posted by @Shadowfiend in https://github.com/tahowallet/extension/pull/3394#discussion_r1204943947