diff --git a/changelog/_22733.txt b/changelog/_22733.txt new file mode 100644 index 000000000..039e42359 --- /dev/null +++ b/changelog/_22733.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: fixes long namespace names overflow in the sidebar +``` diff --git a/ui/app/styles/components/namespace-picker.scss b/ui/app/styles/components/namespace-picker.scss index 367f4c984..26d30abf6 100644 --- a/ui/app/styles/components/namespace-picker.scss +++ b/ui/app/styles/components/namespace-picker.scss @@ -25,11 +25,6 @@ margin-right: $spacing-xxs; } -.namespace-name { - font-size: 1rem; - margin-left: $spacing-xs; -} - .namespace-picker-content { width: 250px; max-height: 300px; @@ -46,7 +41,6 @@ max-width: 210px; overflow-wrap: break-word; word-wrap: break-word; - word-break: break-all; word-break: break-word; } diff --git a/ui/app/styles/helper-classes/typography.scss b/ui/app/styles/helper-classes/typography.scss index af862435a..2b1ce30c8 100644 --- a/ui/app/styles/helper-classes/typography.scss +++ b/ui/app/styles/helper-classes/typography.scss @@ -75,6 +75,10 @@ text-align: right !important; } +.has-text-left { + text-align: left; +} + .has-text-centered { text-align: center !important; } diff --git a/ui/app/templates/components/namespace-picker.hbs b/ui/app/templates/components/namespace-picker.hbs index 3bab05d42..d23f42df7 100644 --- a/ui/app/templates/components/namespace-picker.hbs +++ b/ui/app/templates/components/namespace-picker.hbs @@ -5,9 +5,9 @@ class="button is-transparent namespace-picker-trigger has-current-color" data-test-namespace-toggle > -