From 5e7712d9f21808cfac6753bc79884487d7f865fc Mon Sep 17 00:00:00 2001 From: Chen-I Lim Date: Tue, 13 Oct 2020 14:10:33 -0700 Subject: [PATCH] Sidebar - click on options button shouldn't trigger change board --- src/client/components/sidebar.tsx | 6 ++++-- src/static/main.css | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/client/components/sidebar.tsx b/src/client/components/sidebar.tsx index 138121806..355c9e8fe 100644 --- a/src/client/components/sidebar.tsx +++ b/src/client/components/sidebar.tsx @@ -25,8 +25,8 @@ class Sidebar extends React.Component { boards.map(board => { const displayTitle = board.title || "(Untitled Board)" return ( -
{ this.boardClicked(board) }}> -
{board.icon ? `${board.icon} ${displayTitle}` : displayTitle}
+
+
{ this.boardClicked(board) }}>{board.icon ? `${board.icon} ${displayTitle}` : displayTitle}
{ this.showOptions(e, board) }}>
@@ -67,6 +67,8 @@ class Sidebar extends React.Component { } } Menu.shared.showAtElement(e.target as HTMLElement) + + e.stopPropagation() } private boardClicked(board: Board) { diff --git a/src/static/main.css b/src/static/main.css index 3f1d3f144..798ab79cc 100644 --- a/src/static/main.css +++ b/src/static/main.css @@ -102,10 +102,13 @@ hr { flex-direction: row; font-weight: 500; - cursor: pointer; padding: 3px 20px; } +.octo-sidebar-title { + cursor: pointer; +} + .octo-sidebar-item:hover { background-color: rgba(0, 0, 0, 0.05); }