backport of commit fcd6f01761c6ca0c481b29591df26e0e59fd1f95 (#22759)
Co-authored-by: Cinthia Conti <cinthiaconti@gmail.com>
This commit is contained in:
parent
d2eb98e2cf
commit
fc918919eb
|
@ -0,0 +1,3 @@
|
||||||
|
```release-note:bug
|
||||||
|
ui: fixes long namespace names overflow in the sidebar
|
||||||
|
```
|
|
@ -25,11 +25,6 @@
|
||||||
margin-right: $spacing-xxs;
|
margin-right: $spacing-xxs;
|
||||||
}
|
}
|
||||||
|
|
||||||
.namespace-name {
|
|
||||||
font-size: 1rem;
|
|
||||||
margin-left: $spacing-xs;
|
|
||||||
}
|
|
||||||
|
|
||||||
.namespace-picker-content {
|
.namespace-picker-content {
|
||||||
width: 250px;
|
width: 250px;
|
||||||
max-height: 300px;
|
max-height: 300px;
|
||||||
|
@ -46,7 +41,6 @@
|
||||||
max-width: 210px;
|
max-width: 210px;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
word-break: break-all;
|
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -75,6 +75,10 @@
|
||||||
text-align: right !important;
|
text-align: right !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.has-text-left {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
.has-text-centered {
|
.has-text-centered {
|
||||||
text-align: center !important;
|
text-align: center !important;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
class="button is-transparent namespace-picker-trigger has-current-color"
|
class="button is-transparent namespace-picker-trigger has-current-color"
|
||||||
data-test-namespace-toggle
|
data-test-namespace-toggle
|
||||||
>
|
>
|
||||||
<div class="is-flex-center">
|
<div class="is-flex-center is-flex-1">
|
||||||
<Icon @name="org" />
|
<Icon @name="org" />
|
||||||
<span class="namespace-name">{{this.namespaceDisplay}}</span>
|
<span class="is-flex-1 is-word-break has-text-left is-size-6 has-left-margin-xs">{{this.namespaceDisplay}}</span>
|
||||||
</div>
|
</div>
|
||||||
<Icon @name="caret" />
|
<Icon @name="caret" />
|
||||||
</D.Trigger>
|
</D.Trigger>
|
||||||
|
|
Loading…
Reference in New Issue