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
dbb095ff
Unverified
Commit
dbb095ff
authored
Mar 26, 2023
by
boojack
Committed by
GitHub
Mar 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update list switch style (#1417)
parent
adf01ed5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
14 deletions
+18
-14
ResourcesDashboard.tsx
web/src/pages/ResourcesDashboard.tsx
+18
-14
No files found.
web/src/pages/ResourcesDashboard.tsx
View file @
dbb095ff
...
...
@@ -244,20 +244,6 @@ const ResourcesDashboard = () => {
<
Button
onClick=
{
()
=>
showCreateResourceDialog
({})
}
>
<
Icon
.
Plus
className=
"w-4 h-auto"
/>
</
Button
>
<
div
className=
"flex"
>
<
div
className=
{
`rounded-l-lg p-2 ${listStyle ? "bg-gray-200 dark:bg-zinc-800" : "bg-white bg-zinc-700"}`
}
onClick=
{
()
=>
handleStyleChangeBtnClick
(
true
)
}
>
<
Icon
.
List
/>
</
div
>
<
div
className=
{
`rounded-r-lg p-2 ${listStyle ? "bg-white bg-zinc-700" : "bg-gray-200 dark:bg-zinc-800"}`
}
onClick=
{
()
=>
handleStyleChangeBtnClick
(
false
)
}
>
<
Icon
.
Grid
/>
</
div
>
</
div
>
<
Dropdown
className=
"drop-shadow-none"
actionsClassName=
"!w-28 rounded-lg drop-shadow-md dark:bg-zinc-800"
...
...
@@ -279,6 +265,24 @@ const ResourcesDashboard = () => {
</>
}
/>
<
div
className=
"flex rounded-lg cursor-pointer h-8 overflow-clip border dark:border-zinc-600"
>
<
div
className=
{
`flex justify-center items-center px-3 ${
!listStyle ? "bg-white dark:bg-zinc-700" : "bg-gray-200 dark:bg-zinc-800 opacity-60"
}`
}
onClick=
{
()
=>
handleStyleChangeBtnClick
(
false
)
}
>
<
Icon
.
Grid
className=
"w-4 h-auto opacity-80"
/>
</
div
>
<
div
className=
{
`flex justify-center items-center px-3 ${
listStyle ? "bg-white dark:bg-zinc-700" : "bg-gray-200 dark:bg-zinc-800 opacity-60"
}`
}
onClick=
{
()
=>
handleStyleChangeBtnClick
(
true
)
}
>
<
Icon
.
List
className=
"w-4 h-auto opacity-80"
/>
</
div
>
</
div
>
</
div
>
<
div
className=
"w-full flex flex-col justify-start items-start mt-4 mb-6"
>
{
loadingState
.
isLoading
?
(
...
...
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