Some minor UI fixes

This commit is contained in:
WolverinDEV 2019-10-23 13:14:18 +02:00
parent c0d92e1549
commit f53241de37
2 changed files with 17 additions and 2 deletions

View file

@ -43,6 +43,12 @@ $client_info_avatar_size: 10em;
flex-direction: row; flex-direction: row;
justify-content: stretch; justify-content: stretch;
.block, .button {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.block { .block {
flex-shrink: 1; flex-shrink: 1;
flex-grow: 1; flex-grow: 1;
@ -59,6 +65,7 @@ $client_info_avatar_size: 10em;
} }
&.left { &.left {
margin-right: .5em;
text-align: left; text-align: left;
padding-right: 10px; padding-right: 10px;
@ -317,6 +324,14 @@ $client_info_avatar_size: 10em;
margin-bottom: -.4em; margin-bottom: -.4em;
} }
.client-version {
max-width: 100%;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.last-message { .last-message {
color: #555353; color: #555353;

View file

@ -79,7 +79,6 @@ class ServerConnectionManager {
this._container_log_server.children().detach(); this._container_log_server.children().detach();
this._container_hostbanner.children().detach(); this._container_hostbanner.children().detach();
control_bar.set_connection_handler(handler);
if(handler) { if(handler) {
handler.tag_connection_handler.addClass("active"); handler.tag_connection_handler.addClass("active");
@ -91,8 +90,9 @@ class ServerConnectionManager {
if(handler.invoke_resized_on_activate) if(handler.invoke_resized_on_activate)
handler.resize_elements(); handler.resize_elements();
} }
top_menu.update_state();
this.active_handler = handler; this.active_handler = handler;
control_bar.set_connection_handler(handler);
top_menu.update_state();
} }
active_connection_handler() : ConnectionHandler | undefined { active_connection_handler() : ConnectionHandler | undefined {