Kubeapps: Broken CSS for Secrets table

Created on 2 Aug 2019  路  2Comments  路  Source: kubeapps/kubeapps

My Secrets table looks broken. It seems to be some trouble with the flex class, but I know little about HTML/CSS so I can't help much more than just reporting it... :) Can help to debug if you tell me how.

Table formatting

Migrated from #848

good first issue kinbug

Most helpful comment

Hi there. The issue occurs when the secret type does not have any normal word break characters, such as hyphens. For example, here is what it looks like when a hyphen is present:

secret-type-with-hyphens-overflow-wrap-normal

while without hyphens it is as @lindhe found above:

secret-type-without-hyphens-overflow-wrap-normal

Since the information is important, and we really want it to wrap as it does when hyphens are present, I've just updated it to use overflow-wrap: break-word (rather than ellipsis), so that it can break a word to wrap as needed:

secret-type-without-hyphens-overflow-wrap-anywhere

All 2 comments

Thanks for splitting the issue. @absoludity maybe you can take a look to this? In theory, it's should be enough setting the text-overflow: ellipsis; property (ref)

Hi there. The issue occurs when the secret type does not have any normal word break characters, such as hyphens. For example, here is what it looks like when a hyphen is present:

secret-type-with-hyphens-overflow-wrap-normal

while without hyphens it is as @lindhe found above:

secret-type-without-hyphens-overflow-wrap-normal

Since the information is important, and we really want it to wrap as it does when hyphens are present, I've just updated it to use overflow-wrap: break-word (rather than ellipsis), so that it can break a word to wrap as needed:

secret-type-without-hyphens-overflow-wrap-anywhere

Was this page helpful?
0 / 5 - 0 ratings