From 02565ec326d4c29c36d919974269e91996257416 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 17 Jul 2019 07:57:11 +0200 Subject: [PATCH] user/list: Make backend selection look good again --- application/controllers/UserController.php | 2 +- public/css/icinga/controls.less | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/application/controllers/UserController.php b/application/controllers/UserController.php index 5d458aecc..868c7c41b 100644 --- a/application/controllers/UserController.php +++ b/application/controllers/UserController.php @@ -45,7 +45,7 @@ class UserController extends AuthBackendController } $this->view->backendSelection = new Form(); - $this->view->backendSelection->setAttrib('class', 'backend-selection inline'); + $this->view->backendSelection->setAttrib('class', 'backend-selection icinga-controls'); $this->view->backendSelection->setUidDisabled(); $this->view->backendSelection->setMethod('GET'); $this->view->backendSelection->setTokenDisabled(); diff --git a/public/css/icinga/controls.less b/public/css/icinga/controls.less index e711eced5..d1aa5a305 100644 --- a/public/css/icinga/controls.less +++ b/public/css/icinga/controls.less @@ -2,9 +2,9 @@ // TODO(el): Rename .filter to .filter-control -// Hide auto sumbit info in controls but keep information for screen readers +// Hide auto sumbit info in controls .controls .autosubmit-info { - .sr-only(); + display: none; } @@ -12,14 +12,12 @@ .backend-selection { float: left; - > .control-group { - padding: 0; - line-height: 2em; + .control-label-group, select { + display: inline-block; + } - > .control-label-group { - text-align: left; - width: auto; - } + select { + margin-left: .5em; } }