From 894d6f162d93d5dcde488609b41385b76368ec0e Mon Sep 17 00:00:00 2001 From: Alistair McKinlay Date: Fri, 2 Mar 2018 13:59:45 +0000 Subject: [PATCH] Hide collapse button if no channels --- client/css/style.css | 5 +++++ client/views/network.tpl | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/client/css/style.css b/client/css/style.css index c3986f6c..5c22789c 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -717,6 +717,11 @@ kbd { transition: opacity 0.2s, background-color 0.2s, transform 0.2s; } +button.collapse-network:first-child:nth-last-child(3) { + /* Hide collapse button if there are no channels/queries */ + display: none; +} + #sidebar .network.collapsed .collapse-network { transform: rotate(-90deg); } diff --git a/client/views/network.tpl b/client/views/network.tpl index d53b1fd9..cca45a5e 100644 --- a/client/views/network.tpl +++ b/client/views/network.tpl @@ -6,10 +6,11 @@ data-nick="{{nick}}" data-options="{{tojson serverOptions}}" > -
- {{> chan}} + + {{> chan}}
{{/each}}