fix: shorten chat banner status text + prevent relogin button squish (#570)
* fix: shorten chat banner status text + prevent relogin button squish * fix: drop bad weight import (resolve internal RowColumnParentData conflict) --------- Co-authored-by: M57 <m57@hermes-control.app>
This commit is contained in:
1 parent
907d247312
commit
8d22988985
2 files changed
+11
-5
No files matched your search
@@ -1615,7 +1615,10 @@ private fun ChatTopBanner(
|
|||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
horizontalArrangement = Arrangement.SpaceBetween,
|
horizontalArrangement = Arrangement.SpaceBetween,
|
||||||
) {
|
) {
|
||||||
Row(verticalAlignment = Alignment.CenterVertically) {
|
Row(
|
||||||
|
modifier = Modifier.weight(1f),
|
||||||
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
|
) {
|
||||||
if (connectionStatus == ConnectionStatus.RECONNECTING) {
|
if (connectionStatus == ConnectionStatus.RECONNECTING) {
|
||||||
CircularProgressIndicator(
|
CircularProgressIndicator(
|
||||||
modifier = Modifier.size(16.dp).padding(end = 8.dp),
|
modifier = Modifier.size(16.dp).padding(end = 8.dp),
|
||||||
@@ -1624,6 +1627,9 @@ private fun ChatTopBanner(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
Text(
|
Text(
|
||||||
|
modifier = Modifier.weight(1f, fill = false),
|
||||||
|
maxLines = 1,
|
||||||
|
overflow = TextOverflow.Ellipsis,
|
||||||
text =
|
text =
|
||||||
when (connectionStatus) {
|
when (connectionStatus) {
|
||||||
ConnectionStatus.RECONNECTING -> stringResource(R.string.chat_status_reconnecting)
|
ConnectionStatus.RECONNECTING -> stringResource(R.string.chat_status_reconnecting)
|
||||||
|
|||||||
@@ -101,10 +101,10 @@
|
|||||||
<string name="chat_empty_title">Ready to chat</string>
|
<string name="chat_empty_title">Ready to chat</string>
|
||||||
<string name="chat_empty_subtitle">Send a message to start a conversation</string>
|
<string name="chat_empty_subtitle">Send a message to start a conversation</string>
|
||||||
<string name="chat_status_connecting">Connecting to Hermes\u2026</string>
|
<string name="chat_status_connecting">Connecting to Hermes\u2026</string>
|
||||||
<string name="chat_status_reconnecting">Reconnecting to Hermes\u2026</string>
|
<string name="chat_status_reconnecting">Reconnecting\u2026</string>
|
||||||
<string name="chat_status_disconnected">Disconnected from Hermes</string>
|
<string name="chat_status_disconnected">Disconnected</string>
|
||||||
<string name="chat_status_no_network">No network connection</string>
|
<string name="chat_status_no_network">No network</string>
|
||||||
<string name="chat_status_auth_expired">Session expired \u2014 please sign in again</string>
|
<string name="chat_status_auth_expired">Session expired</string>
|
||||||
<string name="chat_thinking">Thinking\u2026</string>
|
<string name="chat_thinking">Thinking\u2026</string>
|
||||||
<string name="chat_thinking_param">Thinking: %1$s\u2026</string>
|
<string name="chat_thinking_param">Thinking: %1$s\u2026</string>
|
||||||
<string name="chat_reasoning">Reasoning</string>
|
<string name="chat_reasoning">Reasoning</string>
|
||||||
|
|||||||
Reference in new issue
Block a user