refactor: move tags to react (#753)

* refactor: move Tags list to react

* refactor: extract TagsListItem and simplify hooks

* refactor: remove comment & dead code

* fix: mobx warnings & safari bug

* fix: text select on non-safari

* fix: remove unecessary comments

* style: apply prettier format

* style: apply formatting on tags_view

* refactor: remove the angular tags rendering

* feat: add back the "select previous tag" behavior

* style: simplify code and avoid important

* style: remove note on state
This commit is contained in:
Laurent Senta
2021-11-29 17:33:00 +01:00
committed by GitHub
parent 6f3a749e52
commit 4d8ba3320a
7 changed files with 480 additions and 286 deletions

View File

@@ -1,6 +1,8 @@
.tags {
width: 180px;
flex-grow: 0;
user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
@@ -85,18 +87,25 @@
// Required for Safari to avoid highlighting when dragging panel resizers
// Make sure to undo if it's selected (for editing)
user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
pointer-events: none;
&.editing {
-webkit-user-select: text !important;
pointer-events: auto;
user-select: text;
-moz-user-select: text;
-khtml-user-select: text;
-webkit-user-select: text;
}
&:focus {
outline: 0;
box-shadow: 0;
}
pointer-events: none;
}
> .count {