mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 16:27:40 +00:00
feat: removed hover thing
This commit is contained in:
@@ -86,8 +86,6 @@ export const Navbar = () => {
|
|||||||
const { user } = useUser();
|
const { user } = useUser();
|
||||||
const { subscription } = useSubscription();
|
const { subscription } = useSubscription();
|
||||||
const { currentOrg } = useOrganization();
|
const { currentOrg } = useOrganization();
|
||||||
const [openSupport, setOpenSupport] = useState(false);
|
|
||||||
const [openUser, setOpenUser] = useState(false);
|
|
||||||
const [showAdminsModal, setShowAdminsModal] = useState(false);
|
const [showAdminsModal, setShowAdminsModal] = useState(false);
|
||||||
|
|
||||||
const { data: orgs } = useGetOrganizations();
|
const { data: orgs } = useGetOrganizations();
|
||||||
@@ -167,16 +165,16 @@ export const Navbar = () => {
|
|||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<p className="text-lg text-mineshaft-400/70 pl-2 pr-3">/</p>
|
<p className="pl-2 pr-3 text-lg text-mineshaft-400/70">/</p>
|
||||||
<DropdownMenu modal={false}>
|
<DropdownMenu modal={false}>
|
||||||
<Link to="/organization/projects">
|
<Link to="/organization/projects">
|
||||||
<div className="flex cursor-pointer items-center gap-2 text-sm text-white">
|
<div className="flex cursor-pointer items-center gap-2 text-sm text-white">
|
||||||
<div>
|
<div>
|
||||||
<FontAwesomeIcon icon={faCubes} className="text-xs pr-1" />
|
<FontAwesomeIcon icon={faCubes} className="pr-1 text-xs" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="max-w-32 overflow-hidden text-ellipsis">{currentOrg?.name}</div>
|
<div className="max-w-32 overflow-hidden text-ellipsis">{currentOrg?.name}</div>
|
||||||
<div className="rounded border border-mineshaft-500 px-1 mr-2 text-xs text-bunker-300">
|
<div className="mr-2 rounded border border-mineshaft-500 px-1 text-xs text-bunker-300">
|
||||||
{getPlan(subscription)}
|
{getPlan(subscription)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -187,7 +185,7 @@ export const Navbar = () => {
|
|||||||
variant="plain"
|
variant="plain"
|
||||||
colorSchema="secondary"
|
colorSchema="secondary"
|
||||||
ariaLabel="switch-org"
|
ariaLabel="switch-org"
|
||||||
className="px-2 rounded-md py-2 hover:bg-mineshaft-600"
|
className="rounded-md px-2 py-2 hover:bg-mineshaft-600"
|
||||||
>
|
>
|
||||||
<FontAwesomeIcon icon={faSort} className="text-xs text-bunker-300" />
|
<FontAwesomeIcon icon={faSort} className="text-xs text-bunker-300" />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
@@ -246,7 +244,7 @@ export const Navbar = () => {
|
|||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
</DropdownMenuContent>
|
</DropdownMenuContent>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
<p className="text-lg text-mineshaft-400/70 px-2">/</p>
|
<p className="px-2 text-lg text-mineshaft-400/70">/</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="pl-2">
|
<div className="pl-2">
|
||||||
{breadcrumbs ? (
|
{breadcrumbs ? (
|
||||||
@@ -254,22 +252,13 @@ export const Navbar = () => {
|
|||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
<div className="flex-grow" />
|
<div className="flex-grow" />
|
||||||
<DropdownMenu modal={false} open={openSupport} onOpenChange={setOpenSupport}>
|
<DropdownMenu modal={false}>
|
||||||
<DropdownMenuTrigger
|
<DropdownMenuTrigger>
|
||||||
onMouseEnter={() => setOpenSupport(true)}
|
<div className="rounded-l-md border border-r-0 border-mineshaft-500 px-2 py-1 hover:bg-mineshaft-600">
|
||||||
onMouseLeave={() => setOpenSupport(false)}
|
|
||||||
>
|
|
||||||
<div className="border border-mineshaft-500 border-r-0 rounded-l-md px-2 py-1 hover:bg-mineshaft-600">
|
|
||||||
<FontAwesomeIcon icon={faCircleQuestion} className="text-mineshaft-200" />
|
<FontAwesomeIcon icon={faCircleQuestion} className="text-mineshaft-200" />
|
||||||
</div>
|
</div>
|
||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
<DropdownMenuContent
|
<DropdownMenuContent align="end" side="bottom" className="mt-3 p-1">
|
||||||
align="end"
|
|
||||||
side="bottom"
|
|
||||||
className="p-1 mt-3"
|
|
||||||
onMouseEnter={() => setOpenSupport(true)}
|
|
||||||
onMouseLeave={() => setOpenSupport(false)}
|
|
||||||
>
|
|
||||||
{INFISICAL_SUPPORT_OPTIONS.map(([icon, text, url]) => {
|
{INFISICAL_SUPPORT_OPTIONS.map(([icon, text, url]) => {
|
||||||
if (url === "server-admins" && isInfisicalCloud()) {
|
if (url === "server-admins" && isInfisicalCloud()) {
|
||||||
return null;
|
return null;
|
||||||
@@ -311,23 +300,13 @@ export const Navbar = () => {
|
|||||||
)}
|
)}
|
||||||
</DropdownMenuContent>
|
</DropdownMenuContent>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
<DropdownMenu modal={false} open={openUser} onOpenChange={setOpenUser}>
|
<DropdownMenu modal={false}>
|
||||||
<DropdownMenuTrigger
|
<DropdownMenuTrigger asChild>
|
||||||
asChild
|
<div className="rounded-r-md border border-mineshaft-500 px-2 py-1 hover:bg-mineshaft-600">
|
||||||
onMouseEnter={() => setOpenUser(true)}
|
|
||||||
onMouseLeave={() => setOpenUser(false)}
|
|
||||||
>
|
|
||||||
<div className="border border-mineshaft-500 rounded-r-md px-2 py-1 hover:bg-mineshaft-600">
|
|
||||||
<FontAwesomeIcon icon={faUserCircle} className="text-mineshaft-200" />
|
<FontAwesomeIcon icon={faUserCircle} className="text-mineshaft-200" />
|
||||||
</div>
|
</div>
|
||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
<DropdownMenuContent
|
<DropdownMenuContent side="bottom" align="end" className="mt-3 p-1">
|
||||||
side="bottom"
|
|
||||||
align="end"
|
|
||||||
className="p-1 mt-3"
|
|
||||||
onMouseEnter={() => setOpenUser(true)}
|
|
||||||
onMouseLeave={() => setOpenUser(false)}
|
|
||||||
>
|
|
||||||
<div className="cursor-default px-1 py-1">
|
<div className="cursor-default px-1 py-1">
|
||||||
<div className="flex w-full items-center justify-center rounded-md border border-mineshaft-600 bg-gradient-to-tr from-primary-500/10 to-mineshaft-800 p-1 px-2 transition-all duration-150">
|
<div className="flex w-full items-center justify-center rounded-md border border-mineshaft-600 bg-gradient-to-tr from-primary-500/10 to-mineshaft-800 p-1 px-2 transition-all duration-150">
|
||||||
<div className="p-1 pr-3">
|
<div className="p-1 pr-3">
|
||||||
|
|||||||
Reference in New Issue
Block a user