feat(ui): standardize responsive control sizing (#3563)
This commit is contained in:
@@ -7,6 +7,7 @@ import { Button } from "@kandev/ui/button";
|
||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@kandev/ui/card";
|
||||
import { Combobox } from "@/components/combobox";
|
||||
import { toast } from "@/lib/toast/sonner";
|
||||
import { settingsControlClassName } from "../settings-control";
|
||||
import { useOrgUnits } from "@/hooks/domains/org/use-org-units";
|
||||
import { placeWorkspace } from "@/lib/api/domains/org-units-api";
|
||||
import { hasScope, SCOPE } from "@/lib/types/team-access";
|
||||
@@ -70,7 +71,7 @@ export function WorkspacePlacementCard({ workspaceId, unitId, scopes }: Props) {
|
||||
placeholder={t("workspaces:placement.pick")}
|
||||
searchPlaceholder={t("workspaces:placement.search")}
|
||||
emptyMessage={t("workspaces:placement.none")}
|
||||
triggerClassName="h-9 w-full max-w-sm justify-between"
|
||||
triggerClassName={settingsControlClassName("w-full max-w-sm justify-between")}
|
||||
testId="workspace-placement-picker"
|
||||
/>
|
||||
{!canManage && (
|
||||
|
||||
@@ -87,7 +87,7 @@ function WorkspaceSettingsSwitcher({
|
||||
// Same control, sized for a page heading rather than a sidebar
|
||||
// row, at a fixed 240px: long names truncate, short ones leave
|
||||
// the chevron anchored instead of the header jumping per page.
|
||||
className="h-9 w-60 flex-none gap-2 px-3 text-base font-semibold"
|
||||
className="w-60 flex-none gap-2 px-3 text-base font-semibold"
|
||||
/>
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent align="start" className="w-72">
|
||||
|
||||
Reference in New Issue
Block a user