diff --git a/src/ui/ab.tis b/src/ui/ab.tis index 3e94eaec5..6400426ad 100644 --- a/src/ui/ab.tis +++ b/src/ui/ab.tis @@ -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(); }); \ No newline at end of file diff --git a/src/ui/index.css b/src/ui/index.css index 16841777f..b5844db37 100644 --- a/src/ui/index.css +++ b/src/ui/index.css @@ -52,6 +52,9 @@ div.sessions-tab span { display: inline-block; padding: 6px 12px; cursor: pointer; + text-overflow: ellipsis; + white-space: nowrap; + overflow-x: hidden; } div.sessions-tab svg { @@ -66,7 +69,7 @@ div.sessions-tab span.active { } div.search-id { - width: 160px; + width: 120px; padding: 0; position: relative; display: inline-block;