Break primary anywhere (#9050)

This commit is contained in:
Joakim Sørensen 2021-04-30 15:02:01 +02:00 committed by GitHub
parent 551d3ffdf3
commit d57e8a45d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -61,6 +61,9 @@ const nameAsDomainEntry = createConfigEntry("ESPHome");
const longNameEntry = createConfigEntry(
"Entry with a super long name that is going to the next line"
);
const longNonBreakingNameEntry = createConfigEntry(
"EntryWithASuperLongNameThatDoesNotBreak"
);
const configPanelEntry = createConfigEntry("Config Panel", {
domain: "mqtt",
localized_domain_name: "MQTT",
@ -141,6 +144,7 @@ const configEntries: Array<{
{ items: [optionsFlowEntry] },
{ items: [nameAsDomainEntry] },
{ items: [longNameEntry] },
{ items: [longNonBreakingNameEntry] },
{ items: [setupErrorEntry] },
{ items: [migrationErrorEntry] },
{ items: [setupRetryEntry] },
@ -154,6 +158,7 @@ const configEntries: Array<{
setupErrorEntry,
migrationErrorEntry,
longNameEntry,
longNonBreakingNameEntry,
setupRetryEntry,
failedUnloadEntry,
notLoadedEntry,

View File

@ -150,6 +150,7 @@ export class HaIntegrationHeader extends LitElement {
margin-top: 16px;
margin-right: 2px;
font-weight: 400;
line-break: anywhere;
color: var(--primary-text-color);
}
.secondary {