Merge pull request #11 from heimoshuiyu/dev
refactor: hide API Endpoint overflow in Settings component for better display
This commit is contained in:
@@ -486,12 +486,19 @@ const APIShowBlock = (props: {
|
|||||||
<Badge variant="outline">{props.type}</Badge> <Label>{props.label}</Label>
|
<Badge variant="outline">{props.type}</Badge> <Label>{props.label}</Label>
|
||||||
<div className="mt-4">
|
<div className="mt-4">
|
||||||
<div className="grid w-full max-w-sm items-center gap-1.5 mt-2">
|
<div className="grid w-full max-w-sm items-center gap-1.5 mt-2">
|
||||||
<Label>Endpoint</Label> {props.apiField}
|
<Label>Endpoint</Label>
|
||||||
|
<div className="w-72">
|
||||||
|
<pre className="text-xs whitespace-pre-wrap">{props.apiField}</pre>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="grid w-full max-w-sm items-center gap-1.5 mt-2">
|
<div className="grid w-full max-w-sm items-center gap-1.5 mt-2">
|
||||||
<Label>Key</Label>
|
<Label>Key</Label>
|
||||||
{props.keyField ? (
|
{props.keyField ? (
|
||||||
props.keyField
|
<div className="w-72">
|
||||||
|
<pre className="text-xs whitespace-pre-wrap">
|
||||||
|
{props.keyField}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<span className="text-gray-500 italic">empty</span>
|
<span className="text-gray-500 italic">empty</span>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -80,39 +80,7 @@ import {
|
|||||||
AlertDialogTrigger,
|
AlertDialogTrigger,
|
||||||
} from "@/components/ui/alert-dialog";
|
} from "@/components/ui/alert-dialog";
|
||||||
|
|
||||||
import {
|
|
||||||
Menubar,
|
|
||||||
MenubarContent,
|
|
||||||
MenubarItem,
|
|
||||||
MenubarMenu,
|
|
||||||
MenubarSeparator,
|
|
||||||
MenubarShortcut,
|
|
||||||
MenubarCheckboxItem,
|
|
||||||
MenubarTrigger,
|
|
||||||
} from "@/components/ui/menubar";
|
|
||||||
|
|
||||||
import {
|
|
||||||
Popover,
|
|
||||||
PopoverContent,
|
|
||||||
PopoverTrigger,
|
|
||||||
} from "@/components/ui/popover";
|
|
||||||
|
|
||||||
import { useToast } from "@/hooks/use-toast";
|
import { useToast } from "@/hooks/use-toast";
|
||||||
import { Separator } from "@/components/ui/separator";
|
|
||||||
import {
|
|
||||||
BoxesIcon,
|
|
||||||
ArrowUpDownIcon,
|
|
||||||
CircleDollarSignIcon,
|
|
||||||
ScissorsIcon,
|
|
||||||
WholeWordIcon,
|
|
||||||
EllipsisIcon,
|
|
||||||
CogIcon,
|
|
||||||
Menu,
|
|
||||||
ReceiptIcon,
|
|
||||||
WalletIcon,
|
|
||||||
RulerIcon,
|
|
||||||
} from "lucide-react";
|
|
||||||
import { Badge } from "@/components/ui/badge";
|
|
||||||
import { ModeToggle } from "@/components/ModeToggle";
|
import { ModeToggle } from "@/components/ModeToggle";
|
||||||
|
|
||||||
import Navbar from "@/components/navbar";
|
import Navbar from "@/components/navbar";
|
||||||
|
|||||||
Reference in New Issue
Block a user