Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
17a61bb6
Commit
17a61bb6
authored
Jul 04, 2022
by
boojack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
choe: update shortcut actived style
parent
49666dda
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
15 deletions
+6
-15
ShortcutList.tsx
web/src/components/ShortcutList.tsx
+1
-3
shortcut-list.less
web/src/less/shortcut-list.less
+3
-8
tag-list.less
web/src/less/tag-list.less
+2
-4
No files found.
web/src/components/ShortcutList.tsx
View file @
17a61bb6
import
{
useEffect
}
from
"react"
;
import
{
locationService
,
shortcutService
}
from
"../services"
;
import
{
useAppSelector
}
from
"../store"
;
import
{
UNKNOWN_ID
}
from
"../helpers/consts"
;
import
*
as
utils
from
"../helpers/utils"
;
import
useToggle
from
"../hooks/useToggle"
;
import
useLoading
from
"../hooks/useLoading"
;
...
...
@@ -113,12 +112,11 @@ const ShortcutContainer: React.FC<ShortcutContainerProps> = (props: ShortcutCont
<>
<
div
className=
{
`shortcut-container ${isActive ? "active" : ""}`
}
onClick=
{
handleShortcutClick
}
>
<
div
className=
"shortcut-text-container"
>
{
/* <span className="icon-text">#</span> */
}
<
span
className=
"shortcut-text"
>
{
shortcut
.
title
}
</
span
>
</
div
>
<
div
className=
"btns-container"
>
<
span
className=
"action-btn toggle-btn"
>
<
img
className=
"icon-img"
src=
{
`/icons/more${isActive ? "-white" : ""}.svg`
}
/>
<
img
className=
"icon-img"
src=
"/icons/more.svg"
/>
</
span
>
<
div
className=
"action-btns-wrapper"
>
<
div
className=
"action-btns-container"
>
...
...
web/src/less/shortcut-list.less
View file @
17a61bb6
...
...
@@ -36,7 +36,7 @@
@apply flex flex-col justify-start items-start relative w-full h-auto flex-nowrap mb-2;
> .shortcut-container {
@apply flex flex-row justify-between items-center w-full h-10 py-0 px-4 mt-px first:mt-2 rounded-lg text-base cursor-pointer select-none shrink-0 hover:bg-
gray-200
;
@apply flex flex-row justify-between items-center w-full h-10 py-0 px-4 mt-px first:mt-2 rounded-lg text-base cursor-pointer select-none shrink-0 hover:bg-
white
;
&:hover {
> .btns-container {
...
...
@@ -45,18 +45,13 @@
}
&.active {
@apply bg-green-600;
> .shortcut-text-container {
> * {
@apply text-white;
}
@apply text-green-600;
}
}
> .shortcut-text-container {
@apply flex flex-row justify-start items-center truncate shrink leading-5 mr-1;
color: @text-black;
@apply flex flex-row justify-start items-center truncate shrink leading-5 mr-1 text-black;
> .icon-text {
@apply block w-4 shrink-0;
...
...
web/src/less/tag-list.less
View file @
17a61bb6
...
...
@@ -23,13 +23,11 @@
}
.tag-item-container {
@apply flex flex-row justify-between items-center w-full h-10 py-0 px-4 rounded-lg text-base shrink-0 select-none cursor-pointer hover:bg-
gray-200
;
@apply flex flex-row justify-between items-center w-full h-10 py-0 px-4 rounded-lg text-base shrink-0 select-none cursor-pointer hover:bg-
white
;
&.active {
> .tag-text-container {
> * {
@apply text-green-600;
}
@apply text-green-600;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment