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

View File

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