mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 01:26:20 +00:00
style: make navbar more responsive to allow navigation on smaller devices
This commit is contained in:
@@ -294,7 +294,7 @@ export const Navbar = () => {
|
|||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<div className="flex items-center overflow-hidden">
|
<div className="flex min-w-12 items-center overflow-hidden">
|
||||||
<DropdownMenu modal={false} open={isOrgSelectOpen} onOpenChange={setIsOrgSelectOpen}>
|
<DropdownMenu modal={false} open={isOrgSelectOpen} onOpenChange={setIsOrgSelectOpen}>
|
||||||
<div className="group flex cursor-pointer items-center gap-2 overflow-hidden text-sm text-white transition-all duration-100 hover:text-primary">
|
<div className="group flex cursor-pointer items-center gap-2 overflow-hidden text-sm text-white transition-all duration-100 hover:text-primary">
|
||||||
<Badge
|
<Badge
|
||||||
@@ -324,7 +324,7 @@ export const Navbar = () => {
|
|||||||
<span>{currentOrg?.name}</span>
|
<span>{currentOrg?.name}</span>
|
||||||
</button>
|
</button>
|
||||||
</Badge>
|
</Badge>
|
||||||
<div className="mr-1 rounded-sm border border-mineshaft-500 px-1 text-xs text-bunker-300 no-underline!">
|
<div className="mr-1 hidden rounded-sm border border-mineshaft-500 px-1 text-xs text-bunker-300 no-underline! md:inline-block">
|
||||||
{getPlan(subscription)}
|
{getPlan(subscription)}
|
||||||
</div>
|
</div>
|
||||||
{subscription.cardDeclined && (
|
{subscription.cardDeclined && (
|
||||||
@@ -468,7 +468,7 @@ export const Navbar = () => {
|
|||||||
className={twMerge(
|
className={twMerge(
|
||||||
"gap-x-1.5 text-sm",
|
"gap-x-1.5 text-sm",
|
||||||
!isOrgScope &&
|
!isOrgScope &&
|
||||||
"bg-transparent text-mineshaft-200 hover:!bg-transparent hover:underline [&>svg]:!text-sub-org"
|
"min-w-6 bg-transparent text-mineshaft-200 hover:!bg-transparent hover:underline [&>svg]:!text-sub-org"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<Link to="/organization/projects">
|
<Link to="/organization/projects">
|
||||||
@@ -569,11 +569,11 @@ export const Navbar = () => {
|
|||||||
)}
|
)}
|
||||||
{user.superAdmin && !location.pathname.startsWith("/admin") && (
|
{user.superAdmin && !location.pathname.startsWith("/admin") && (
|
||||||
<Link
|
<Link
|
||||||
className="mr-2 flex items-center rounded-md border border-mineshaft-500 px-2.5 py-1.5 text-sm whitespace-nowrap text-mineshaft-200 hover:bg-mineshaft-600"
|
className="mr-2 flex h-[34px] items-center rounded-md border border-mineshaft-500 px-2.5 py-1.5 text-sm whitespace-nowrap text-mineshaft-200 hover:bg-mineshaft-600"
|
||||||
to="/admin"
|
to="/admin"
|
||||||
>
|
>
|
||||||
<InstanceIcon className="mr-2 inline-block size-3.5" />
|
<InstanceIcon className="inline-block size-3.5" />
|
||||||
Server Console
|
<span className="ml-2 hidden md:inline-block">Server Console</span>
|
||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
<DropdownMenu modal={false}>
|
<DropdownMenu modal={false}>
|
||||||
|
|||||||
@@ -106,7 +106,9 @@ export const ProjectSelect = () => {
|
|||||||
</p>
|
</p>
|
||||||
<Badge variant="project">
|
<Badge variant="project">
|
||||||
<ProjectIcon />
|
<ProjectIcon />
|
||||||
{currentWorkspace.type ? PROJECT_TYPE_NAME[currentWorkspace.type] : "Project"}
|
<span className="hidden sm:inline-block">
|
||||||
|
{currentWorkspace.type ? PROJECT_TYPE_NAME[currentWorkspace.type] : "Project"}
|
||||||
|
</span>
|
||||||
</Badge>
|
</Badge>
|
||||||
</Link>
|
</Link>
|
||||||
<DropdownMenuTrigger asChild>
|
<DropdownMenuTrigger asChild>
|
||||||
|
|||||||
Reference in New Issue
Block a user