mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 05:47:20 +00:00
Handle text overflow for tabs (#10239)
This commit is contained in:
parent
b6c470edf1
commit
56bd731361
@ -96,6 +96,7 @@ export class HaTab extends LitElement {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
width: 100%;
|
||||||
height: var(--header-height);
|
height: var(--header-height);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -104,6 +105,9 @@ export class HaTab extends LitElement {
|
|||||||
|
|
||||||
.name {
|
.name {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
:host([active]) {
|
:host([active]) {
|
||||||
@ -120,6 +124,10 @@ export class HaTab extends LitElement {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:host([narrow]) div {
|
||||||
|
padding: 0 4px;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -234,6 +234,12 @@ class HassTabsSubpage extends LitElement {
|
|||||||
#tabbar {
|
#tabbar {
|
||||||
display: flex;
|
display: flex;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tabbar > a {
|
||||||
|
overflow: hidden;
|
||||||
|
max-width: 45%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tabbar.bottom-bar {
|
#tabbar.bottom-bar {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user