[WEB-713] style: remove tooltips in mobile responsiveness (#3948)
Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
This commit is contained in:
parent
b930d98665
commit
cb632408f9
70 changed files with 327 additions and 147 deletions
|
|
@ -9,6 +9,7 @@ import { Menu, Transition } from "@headlessui/react";
|
|||
// icons
|
||||
import { LogIn, LogOut, Settings, UserCog2 } from "lucide-react";
|
||||
// hooks
|
||||
import { usePlatformOS } from "hooks/use-platform-os";
|
||||
import { Avatar, Tooltip, TOAST_TYPE, setToast } from "@plane/ui";
|
||||
import { useApplication, useUser } from "hooks/store";
|
||||
// ui
|
||||
|
|
@ -34,7 +35,7 @@ export const InstanceSidebarDropdown = observer(() => {
|
|||
const { signOut, currentUser, currentUserSettings } = useUser();
|
||||
// hooks
|
||||
const { setTheme } = useTheme();
|
||||
|
||||
const { isMobile } = usePlatformOS();
|
||||
// redirect url for normal mode
|
||||
const redirectWorkspaceSlug =
|
||||
workspaceSlug ||
|
||||
|
|
@ -73,7 +74,7 @@ export const InstanceSidebarDropdown = observer(() => {
|
|||
{!sidebarCollapsed && (
|
||||
<div className="flex w-full gap-2">
|
||||
<h4 className="grow truncate text-base font-medium text-custom-text-200">Instance admin</h4>
|
||||
<Tooltip position="bottom-left" tooltipContent="Exit God Mode">
|
||||
<Tooltip position="bottom-left" tooltipContent="Exit God Mode" isMobile={isMobile}>
|
||||
<div className="flex-shrink-0">
|
||||
<Link href={`/${redirectWorkspaceSlug}`}>
|
||||
<span>
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import Link from "next/link";
|
|||
import { useRouter } from "next/router";
|
||||
import { Image, BrainCog, Cog, Lock, Mail } from "lucide-react";
|
||||
// hooks
|
||||
import { usePlatformOS } from "hooks/use-platform-os";
|
||||
import { Tooltip } from "@plane/ui";
|
||||
import { useApplication } from "hooks/store";
|
||||
// ui
|
||||
|
|
@ -46,6 +47,7 @@ export const InstanceAdminSidebarMenu = () => {
|
|||
} = useApplication();
|
||||
// router
|
||||
const router = useRouter();
|
||||
const { isMobile } = usePlatformOS();
|
||||
|
||||
return (
|
||||
<div className="flex h-full w-full flex-col gap-2.5 overflow-y-auto px-4 py-6">
|
||||
|
|
@ -55,7 +57,7 @@ export const InstanceAdminSidebarMenu = () => {
|
|||
return (
|
||||
<Link key={index} href={item.href}>
|
||||
<div>
|
||||
<Tooltip tooltipContent={item.name} position="right" className="ml-2" disabled={!sidebarCollapsed}>
|
||||
<Tooltip tooltipContent={item.name} position="right" className="ml-2" disabled={!sidebarCollapsed} isMobile={isMobile}>
|
||||
<div
|
||||
className={`group flex w-full items-center gap-3 rounded-md px-3 py-2 outline-none ${
|
||||
isActive
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue