Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Block Explorer UI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
Block Explorer UI
Commits
c154dda6
Commit
c154dda6
authored
3 months ago
by
Dima Rifai
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#420
- Modify Styles
parent
a1c986bc
No related branches found
No related tags found
1 merge request
!517
Delrifai/#420 navbar revamp
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
components/ViewPopover.tsx
+15
-11
15 additions, 11 deletions
components/ViewPopover.tsx
with
15 additions
and
11 deletions
components/ViewPopover.tsx
+
15
−
11
View file @
c154dda6
...
...
@@ -41,22 +41,26 @@ const ViewPopover: React.FC<ViewPopoverProps> = ({ isMobile }) => {
<
PopoverTrigger
asChild
>
<
div
className
=
{
cn
(
"
rounded-[6px] text-sm text-center cursor-pointer flex jus
i
tfy-center items-center p-
1 ml-3 py-0 border-2 border-expl
orer
-blue dark:border-explorer-turquoise
"
,
{
"
p-
0
m-0
border-none
text-
base
justify-normal
"
:
isMobile
}
"
h-[35px]
rounded-[6px] text-sm text-center cursor-pointer flex just
i
fy-center items-center p-
2 bg-navbar hover:bg-navbar-hover border-navbar-b
or
d
er
border-[1px] transition-colors duration-200
"
,
{
"
p-
1
m-0 text-
sm
justify-normal
"
:
isMobile
}
)
}
data-testid
=
"data-view-dropdown"
>
<
span
>
Data View
</
span
>
<
ChevronDown
className
=
"w-4"
/>
<
span
className
=
"font-semibold"
>
Data View
</
span
>
<
ChevronDown
className
=
"w-4
ml-1
"
/>
</
div
>
</
PopoverTrigger
>
<
PopoverContent
className
=
{
`w-60 bg-theme dark:bg-theme text-white rounded-[8px] border
${
isMobile
&&
"
ml-[30px]
"
}
`
}
className
=
{
`w-56
bg-theme dark:bg-theme text-white rounded-lg shadow-lg border border-gray-300 dark:border-gray-700
${
isMobile
?
"
ml-[20px]
"
:
""
}
`
}
>
<
RadioGroup
defaultValue
=
{
popupDefaultValue
}
onValueChange
=
{
handleSelect
}
>
<
div
className
=
"flex items-center space-x-2"
>
<
RadioGroup
defaultValue
=
{
popupDefaultValue
}
onValueChange
=
{
handleSelect
}
>
<
div
className
=
"flex items-center space-x-2 p-2 hover:bg-navbar-listHover rounded-md transition-colors duration-200"
>
<
RadioGroupItem
onClick
=
{
()
=>
setSettings
({
...
...
@@ -75,7 +79,7 @@ const ViewPopover: React.FC<ViewPopoverProps> = ({ isMobile }) => {
Visualised Data
</
Label
>
</
div
>
<
div
className
=
"flex items-center space-x-2"
>
<
div
className
=
"flex items-center space-x-2
p-2 hover:bg-navbar-listHover rounded-md transition-colors duration-200
"
>
<
RadioGroupItem
onClick
=
{
()
=>
setSettings
({
...
...
@@ -94,7 +98,7 @@ const ViewPopover: React.FC<ViewPopoverProps> = ({ isMobile }) => {
Raw JSON
</
Label
>
</
div
>
<
div
className
=
"flex items-center space-x-2"
>
<
div
className
=
"flex items-center space-x-2
p-2 hover:bg-navbar-listHover rounded-md transition-colors duration-200
"
>
<
RadioGroupItem
onClick
=
{
()
=>
setSettings
({
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment