mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Fix Assist styling (#20997)
This commit is contained in:
parent
53eb7f771f
commit
9ef0bd6e46
@ -215,10 +215,10 @@ export class HaVoiceCommandDialog extends LitElement {
|
|||||||
<div class="messages">
|
<div class="messages">
|
||||||
<div class="messages-container" id="scroll-container">
|
<div class="messages-container" id="scroll-container">
|
||||||
${this._conversation!.map(
|
${this._conversation!.map(
|
||||||
|
// New lines matter for messages
|
||||||
|
// prettier-ignore
|
||||||
(message) => html`
|
(message) => html`
|
||||||
<div class=${this._computeMessageClasses(message)}>
|
<div class=${this._computeMessageClasses(message)}>${message.text}</div>
|
||||||
${message.text}
|
|
||||||
</div>
|
|
||||||
`
|
`
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
@ -355,7 +355,7 @@ export class HaVoiceCommandDialog extends LitElement {
|
|||||||
|
|
||||||
private _handleSendMessage() {
|
private _handleSendMessage() {
|
||||||
if (this._messageInput.value) {
|
if (this._messageInput.value) {
|
||||||
this._processText(this._messageInput.value);
|
this._processText(this._messageInput.value.trim());
|
||||||
this._messageInput.value = "";
|
this._messageInput.value = "";
|
||||||
this._showSendButton = false;
|
this._showSendButton = false;
|
||||||
}
|
}
|
||||||
@ -427,34 +427,28 @@ export class HaVoiceCommandDialog extends LitElement {
|
|||||||
private async _showNotSupportedMessage() {
|
private async _showNotSupportedMessage() {
|
||||||
this._addMessage({
|
this._addMessage({
|
||||||
who: "hass",
|
who: "hass",
|
||||||
text: html`
|
text:
|
||||||
<p>
|
// New lines matter for messages
|
||||||
${this.hass.localize(
|
// prettier-ignore
|
||||||
|
html`${this.hass.localize(
|
||||||
"ui.dialogs.voice_command.not_supported_microphone_browser"
|
"ui.dialogs.voice_command.not_supported_microphone_browser"
|
||||||
)}
|
)}
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
"ui.dialogs.voice_command.not_supported_microphone_documentation",
|
"ui.dialogs.voice_command.not_supported_microphone_documentation",
|
||||||
{
|
{
|
||||||
documentation_link: html`
|
documentation_link: html`<a
|
||||||
<a
|
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
href=${documentationUrl(
|
href=${documentationUrl(
|
||||||
this.hass,
|
this.hass,
|
||||||
"/docs/configuration/securing/#remote-access"
|
"/docs/configuration/securing/#remote-access"
|
||||||
)}
|
)}
|
||||||
>
|
>${this.hass.localize(
|
||||||
${this.hass.localize(
|
|
||||||
"ui.dialogs.voice_command.not_supported_microphone_documentation_link"
|
"ui.dialogs.voice_command.not_supported_microphone_documentation_link"
|
||||||
)}
|
)}</a>`,
|
||||||
</a>
|
|
||||||
`,
|
|
||||||
}
|
}
|
||||||
)}
|
)}`,
|
||||||
</p>
|
|
||||||
`,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1113,7 +1113,7 @@
|
|||||||
"start_listening": "Start listening",
|
"start_listening": "Start listening",
|
||||||
"manage_assistants": "Manage assistants",
|
"manage_assistants": "Manage assistants",
|
||||||
"not_supported_microphone_browser": "Your connection to Home Assistant is not secured using HTTPS. This causes browsers to block Home Assistant from accessing the microphone.",
|
"not_supported_microphone_browser": "Your connection to Home Assistant is not secured using HTTPS. This causes browsers to block Home Assistant from accessing the microphone.",
|
||||||
"not_supported_microphone_documentation": "Visit {documentation_link} to learn how to use a secure URL",
|
"not_supported_microphone_documentation": "Use the Home Assistant app or visit {documentation_link} to learn how to use a secure URL",
|
||||||
"not_supported_microphone_documentation_link": "the documentation"
|
"not_supported_microphone_documentation_link": "the documentation"
|
||||||
},
|
},
|
||||||
"generic": {
|
"generic": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user