Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
vicotor
frontend
Commits
8baf6698
Commit
8baf6698
authored
Jul 22, 2024
by
Max Alekseenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove the second shadow
parent
6e328915
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
7 deletions
+2
-7
semanticTokens.ts
theme/foundations/semanticTokens.ts
+0
-1
Marketplace.tsx
ui/pages/Marketplace.tsx
+0
-1
ActionBar.tsx
ui/shared/ActionBar.tsx
+2
-5
No files found.
theme/foundations/semanticTokens.ts
View file @
8baf6698
...
...
@@ -38,7 +38,6 @@ const semanticTokens = {
},
shadows
:
{
action_bar
:
'
0 4px 4px -4px rgb(0 0 0 / 10%), 0 2px 4px -4px rgb(0 0 0 / 6%)
'
,
action_bar_large
:
'
0 30px 25px -25px rgb(0 0 0 / 10%), 0 15px 10px -25px rgb(0 0 0 / 4%)
'
,
},
};
...
...
ui/pages/Marketplace.tsx
View file @
8baf6698
...
...
@@ -179,7 +179,6 @@ const Marketplace = () => {
<
ActionBar
showShadow
isLargeShadow
display=
"flex"
flexDirection=
"column"
mx=
{
{
base
:
-
3
,
lg
:
-
12
}
}
...
...
ui/shared/ActionBar.tsx
View file @
8baf6698
...
...
@@ -8,7 +8,6 @@ type Props = {
children
:
React
.
ReactNode
;
className
?:
string
;
showShadow
?:
boolean
;
isLargeShadow
?:
boolean
;
}
const
TOP_UP
=
106
;
...
...
@@ -16,14 +15,12 @@ const TOP_DOWN = 0;
export
const
ACTION_BAR_HEIGHT_DESKTOP
=
24
+
32
+
12
;
export
const
ACTION_BAR_HEIGHT_MOBILE
=
24
+
32
+
24
;
const
ActionBar
=
({
children
,
className
,
showShadow
,
isLargeShadow
}:
Props
)
=>
{
const
ActionBar
=
({
children
,
className
,
showShadow
}:
Props
)
=>
{
const
ref
=
React
.
useRef
<
HTMLDivElement
>
(
null
);
const
scrollDirection
=
useScrollDirection
();
const
isSticky
=
useIsSticky
(
ref
,
TOP_UP
+
5
);
const
bgColor
=
useColorModeValue
(
'
white
'
,
'
black
'
);
const
shadow
=
isLargeShadow
?
'
action_bar_large
'
:
'
action_bar
'
;
if
(
!
React
.
Children
.
toArray
(
children
).
filter
(
Boolean
).
length
)
{
return
null
;
}
...
...
@@ -45,7 +42,7 @@ const ActionBar = ({ children, className, showShadow, isLargeShadow }: Props) =>
zIndex=
{
{
base
:
'
sticky2
'
,
lg
:
'
docked
'
}
}
boxShadow=
{
{
base
:
isSticky
?
'
md
'
:
'
none
'
,
lg
:
isSticky
&&
showShadow
?
shadow
:
'
none
'
,
lg
:
isSticky
&&
showShadow
?
'
action_bar
'
:
'
none
'
,
}
}
ref=
{
ref
}
>
...
...
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