mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-19 19:21:13 +03:00
resize tab
This commit is contained in:
@@ -278,4 +278,13 @@ class MultipleSessions: Reactor.Component {
|
||||
handler.set_option('show-sessions-type', el.id || "");
|
||||
this.stupidUpdate();
|
||||
}
|
||||
|
||||
function onSize() {
|
||||
var w = this.$(.sessions-bar).box(#width) - 220;
|
||||
this.$(#sessions-type span).style.set{
|
||||
"max-width": (w / 2) + "px",
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
view.on("size", function() { app.multipleSessions.onSize(); });
|
||||
Reference in New Issue
Block a user