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
89347915
Commit
89347915
authored
Apr 24, 2025
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move popover zIndex below modal zIndex
parent
53bbd3c3
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
25 additions
and
11 deletions
+25
-11
select.tsx
toolkit/chakra/select.tsx
+3
-2
zIndex.ts
toolkit/theme/foundations/zIndex.ts
+1
-2
menu.recipe.ts
toolkit/theme/recipes/menu.recipe.ts
+1
-1
AppSecurityReport.tsx
ui/marketplace/AppSecurityReport.tsx
+13
-2
ContractListModal.tsx
ui/marketplace/ContractListModal.tsx
+0
-1
MarketplaceAppModal.tsx
ui/marketplace/MarketplaceAppModal.tsx
+2
-1
MarketplaceDisclaimerModal.tsx
ui/marketplace/MarketplaceDisclaimerModal.tsx
+0
-1
Rating.tsx
ui/marketplace/Rating/Rating.tsx
+4
-1
NetworkMenuContentMobile.tsx
ui/snippets/networkMenu/NetworkMenuContentMobile.tsx
+1
-0
No files found.
toolkit/chakra/select.tsx
View file @
89347915
...
...
@@ -234,10 +234,11 @@ export interface SelectProps extends SelectRootProps {
portalled
?:
boolean
;
loading
?:
boolean
;
errorText
?:
string
;
contentProps
?:
SelectContentProps
;
}
export
const
Select
=
React
.
forwardRef
<
HTMLDivElement
,
SelectProps
>
((
props
,
ref
)
=>
{
const
{
collection
,
placeholder
,
portalled
=
true
,
loading
,
errorText
,
...
rest
}
=
props
;
const
{
collection
,
placeholder
,
portalled
=
true
,
loading
,
errorText
,
contentProps
,
...
rest
}
=
props
;
return
(
<
SelectRoot
ref=
{
ref
}
...
...
@@ -253,7 +254,7 @@ export const Select = React.forwardRef<HTMLDivElement, SelectProps>((props, ref)
errorText=
{
errorText
}
/>
</
SelectControl
>
<
SelectContent
portalled=
{
portalled
}
>
<
SelectContent
portalled=
{
portalled
}
{
...
contentProps
}
>
{
collection
.
items
.
map
((
item
:
SelectOption
)
=>
(
<
SelectItem
item=
{
item
}
key=
{
item
.
value
}
>
{
item
.
label
}
...
...
toolkit/theme/foundations/zIndex.ts
View file @
89347915
...
...
@@ -3,14 +3,13 @@ export const zIndex = {
auto
:
{
value
:
'
auto
'
},
base
:
{
value
:
0
},
docked
:
{
value
:
10
},
dropdown
:
{
value
:
1000
},
sticky
:
{
value
:
1100
},
sticky1
:
{
value
:
1101
},
sticky2
:
{
value
:
1102
},
popover
:
{
value
:
1150
},
banner
:
{
value
:
1200
},
overlay
:
{
value
:
1300
},
modal
:
{
value
:
1400
},
popover
:
{
value
:
1500
},
tooltip
:
{
value
:
1550
},
// otherwise tooltips will not be visible in modals
tooltip2
:
{
value
:
1551
},
// for tooltips in tooltips
skipLink
:
{
value
:
1600
},
...
...
toolkit/theme/recipes/menu.recipe.ts
View file @
89347915
...
...
@@ -9,7 +9,7 @@ export const recipe = defineSlotRecipe({
boxShadow
:
'
popover
'
,
color
:
'
initial
'
,
maxHeight
:
'
var(--available-height)
'
,
'
--menu-z-index
'
:
'
zIndex.
dropdown
'
,
'
--menu-z-index
'
:
'
zIndex.
popover
'
,
zIndex
:
'
calc(var(--menu-z-index) + var(--layer-index, 0))
'
,
borderRadius
:
'
md
'
,
overflow
:
'
hidden
'
,
...
...
ui/marketplace/AppSecurityReport.tsx
View file @
89347915
...
...
@@ -12,6 +12,7 @@ import config from 'configs/app';
import
solidityScanIcon
from
'
icons/brands/solidity_scan.svg
'
;
import
*
as
mixpanel
from
'
lib/mixpanel/index
'
;
import
{
Link
}
from
'
toolkit/chakra/link
'
;
import
type
{
PopoverContentProps
}
from
'
toolkit/chakra/popover
'
;
import
{
PopoverBody
,
PopoverContent
,
PopoverRoot
}
from
'
toolkit/chakra/popover
'
;
import
{
useDisclosure
}
from
'
toolkit/hooks/useDisclosure
'
;
import
{
apos
}
from
'
toolkit/utils/htmlEntities
'
;
...
...
@@ -30,10 +31,20 @@ type Props = {
popoverPlacement
?:
'
bottom-start
'
|
'
bottom-end
'
|
'
left
'
;
buttonProps
?:
ButtonProps
;
triggerWrapperProps
?:
BoxProps
;
popoverContentProps
?:
PopoverContentProps
;
};
const
AppSecurityReport
=
({
id
,
securityReport
,
showContractList
,
isLoading
,
onlyIcon
,
source
,
triggerWrapperProps
,
buttonProps
,
popoverPlacement
=
'
bottom-start
'
,
id
,
securityReport
,
showContractList
,
isLoading
,
onlyIcon
,
source
,
triggerWrapperProps
,
buttonProps
,
popoverPlacement
=
'
bottom-start
'
,
popoverContentProps
,
}:
Props
)
=>
{
const
{
open
,
onOpenChange
}
=
useDisclosure
();
...
...
@@ -76,7 +87,7 @@ const AppSecurityReport = ({
wrapperProps=
{
triggerWrapperProps
}
{
...
buttonProps
}
/>
<
PopoverContent
w=
{
{
base
:
'
calc(100vw - 48px)
'
,
lg
:
'
328px
'
}
}
mx=
{
{
base
:
3
,
lg
:
0
}
}
>
<
PopoverContent
w=
{
{
base
:
'
calc(100vw - 48px)
'
,
lg
:
'
328px
'
}
}
mx=
{
{
base
:
3
,
lg
:
0
}
}
{
...
popoverContentProps
}
>
<
PopoverBody
px=
"26px"
py=
"20px"
textStyle=
"sm"
>
<
Text
fontWeight=
"500"
textStyle=
"xs"
mb=
{
2
}
color=
"text.secondary"
>
Smart contracts info
</
Text
>
<
Flex
alignItems=
"center"
justifyContent=
"space-between"
py=
{
1.5
}
>
...
...
ui/marketplace/ContractListModal.tsx
View file @
89347915
...
...
@@ -58,7 +58,6 @@ const ContractListModal = ({ onClose, onBack, type, contracts }: Props) => {
open=
{
Boolean
(
type
)
}
onOpenChange=
{
handleOpenChange
}
size=
{
{
lgDown
:
'
full
'
,
lg
:
'
md
'
}
}
placement=
"center"
>
<
DialogContent
>
<
DialogHeader
display=
"flex"
alignItems=
"center"
mb=
{
4
}
onBackToClick=
{
onBack
}
>
...
...
ui/marketplace/MarketplaceAppModal.tsx
View file @
89347915
...
...
@@ -135,7 +135,6 @@ const MarketplaceAppModal = ({
open=
{
Boolean
(
data
.
id
)
}
onOpenChange=
{
handleOpenChange
}
size=
{
{
lgDown
:
'
full
'
,
lg
:
'
md
'
}
}
placement=
"center"
>
<
DialogContent
>
<
Box
...
...
@@ -197,6 +196,7 @@ const MarketplaceAppModal = ({
fullView
canRate=
{
canRate
}
source=
"App modal"
popoverContentProps=
{
{
zIndex
:
'
modal
'
}
}
/>
</
Box
>
)
}
...
...
@@ -265,6 +265,7 @@ const MarketplaceAppModal = ({
showContractList=
{
showContractList
}
source=
"App modal"
popoverPlacement=
{
isMobile
?
'
bottom-start
'
:
'
left
'
}
popoverContentProps=
{
{
zIndex
:
'
modal
'
}
}
/>
</
Flex
>
</
Flex
>
...
...
ui/marketplace/MarketplaceDisclaimerModal.tsx
View file @
89347915
...
...
@@ -27,7 +27,6 @@ const MarketplaceDisclaimerModal = ({ isOpen, onClose, appId }: Props) => {
open=
{
isOpen
}
onOpenChange=
{
onClose
}
size=
{
isMobile
?
'
full
'
:
'
md
'
}
placement=
"center"
>
<
DialogContent
>
<
DialogHeader
>
...
...
ui/marketplace/Rating/Rating.tsx
View file @
89347915
...
...
@@ -5,6 +5,7 @@ import type { AppRating } from 'types/client/marketplace';
import
config
from
'
configs/app
'
;
import
type
{
EventTypes
,
EventPayload
}
from
'
lib/mixpanel/index
'
;
import
type
{
PopoverContentProps
}
from
'
toolkit/chakra/popover
'
;
import
{
PopoverBody
,
PopoverContent
,
PopoverRoot
}
from
'
toolkit/chakra/popover
'
;
import
{
Rating
}
from
'
toolkit/chakra/rating
'
;
import
{
Skeleton
}
from
'
toolkit/chakra/skeleton
'
;
...
...
@@ -26,11 +27,13 @@ type Props = {
fullView
?:
boolean
;
canRate
:
boolean
|
undefined
;
source
:
EventPayload
<
EventTypes
.
APP_FEEDBACK
>
[
'
Source
'
];
popoverContentProps
?:
PopoverContentProps
;
};
const
MarketplaceRating
=
({
appId
,
rating
,
userRating
,
rate
,
isSending
,
isLoading
,
fullView
,
canRate
,
source
,
popoverContentProps
,
}:
Props
)
=>
{
if
(
!
isEnabled
)
{
...
...
@@ -60,7 +63,7 @@ const MarketplaceRating = ({
canRate=
{
canRate
}
/>
{
canRate
?
(
<
PopoverContent
w=
"250px"
>
<
PopoverContent
w=
"250px"
{
...
popoverContentProps
}
>
<
PopoverBody
>
<
Content
appId=
{
appId
}
...
...
ui/snippets/networkMenu/NetworkMenuContentMobile.tsx
View file @
89347915
...
...
@@ -58,6 +58,7 @@ const NetworkMenuContentMobile = ({ items, tabs }: Props) => {
collection=
{
selectCollection
}
placeholder=
"Select network type"
mb=
{
3
}
contentProps=
{
{
zIndex
:
'
modal
'
}
}
/>
)
}
<
VStack
as=
"ul"
gap=
{
2
}
alignItems=
"stretch"
>
...
...
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