From 692fa808e48469f86741621a8cf44a145e1e81a4 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 14 Oct 2020 10:34:11 +0200 Subject: [PATCH] make utility buttons also useable for links --- src/ui/web/css/themes/element/theme.css | 4 ++-- src/ui/web/session/leftpanel/LeftPanelView.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/web/css/themes/element/theme.css b/src/ui/web/css/themes/element/theme.css index c87b1f72..e739a7d5 100644 --- a/src/ui/web/css/themes/element/theme.css +++ b/src/ui/web/css/themes/element/theme.css @@ -134,11 +134,11 @@ a.button-action { border-radius: 100%; } -button.utility.grid { +.button-utility.grid { background-image: url('icons/enable-grid.svg'); } -button.utility.grid.on { +.button-utility.grid.on { background-image: url('icons/disable-grid.svg'); } diff --git a/src/ui/web/session/leftpanel/LeftPanelView.js b/src/ui/web/session/leftpanel/LeftPanelView.js index efd97703..d2f38923 100644 --- a/src/ui/web/session/leftpanel/LeftPanelView.js +++ b/src/ui/web/session/leftpanel/LeftPanelView.js @@ -68,7 +68,7 @@ export class LeftPanelView extends TemplateView { t.button({ onClick: () => vm.toggleGrid(), className: { - utility: true, + "button-utility": true, grid: true, on: vm => vm.gridEnabled },