Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: ui size (#21488)

ecmadao5d1db2ac121d
diff --git a/frontend/src/app/components/SessionExpiredSurface.tsx b/frontend/src/app/components/SessionExpiredSurface.tsx
index a4a0092065..9e76a1f706 100644
--- a/frontend/src/app/components/SessionExpiredSurface.tsx
+++ b/frontend/src/app/components/SessionExpiredSurface.tsx
@@ -21,7 +21,7 @@ export function SessionExpiredSurface({
<Button
type="button"
appearance="link"
- size="xs"
+ size="md"
className="h-auto p-0 text-sm text-control-light"
onClick={() => useAppStore.getState().logout()}
>
diff --git a/frontend/src/components/BannersWrapper.tsx b/frontend/src/components/BannersWrapper.tsx
index 36282cf09a..32df15c669 100644
--- a/frontend/src/components/BannersWrapper.tsx
+++ b/frontend/src/components/BannersWrapper.tsx
@@ -252,7 +252,7 @@ function BannerUpgradeSubscription() {
<Button
type="button"
appearance="link"
- size="xs"
+ size="md"
className="mr-1 h-auto p-0 whitespace-nowrap text-sm text-main underline hover:opacity-60"
onClick={() => setShowModal(true)}
>
diff --git a/frontend/src/components/CreateWorkloadIdentitySheet.tsx b/frontend/src/components/CreateWorkloadIdentitySheet.tsx
index 3d08eb1795..a973737055 100644
--- a/frontend/src/components/CreateWorkloadIdentitySheet.tsx
+++ b/frontend/src/components/CreateWorkloadIdentitySheet.tsx
@@ -927,7 +927,7 @@ function WorkloadIdentityForm({
<Button
type="button"
appearance="link"
- size="xs"
+ size="md"
className="h-auto p-0 text-sm"
onClick={() => setShowAdvanced(!showAdvanced)}
>
diff --git a/frontend/src/components/DatabaseResourceSelector.tsx b/frontend/src/components/DatabaseResourceSelector.tsx
index 8299affa76..f14051527b 100644
--- a/frontend/src/components/DatabaseResourceSelector.tsx
+++ b/frontend/src/components/DatabaseResourceSelector.tsx
@@ -1037,9 +1037,9 @@ export function DatabaseResourceSelector({
{nextPageToken && (
<Button
appearance="secondary"
- size="xs"
+ size="md"
type="button"
- className="w-full px-2 py-1.5 text-sm text-accent hover:underline cursor-pointer disabled:opacity-50 disabled:no-underline"
+ className="h-auto w-full px-2 py-1.5 text-sm text-accent hover:underline cursor-pointer disabled:opacity-50 disabled:no-underline"
onClick={loadMore}
disabled={loadingMore}
>
diff --git a/frontend/src/components/ExprEditor.test.tsx b/frontend/src/components/ExprEditor.test.tsx
index 907072f7d0..3358f3536d 100644
--- a/frontend/src/components/ExprEditor.test.tsx
+++ b/frontend/src/components/ExprEditor.test.tsx
@@ -338,6 +338,15 @@ describe("ExprEditor", () => {
stylex.props(controlSizeStyle("sm")).className ?? ""
);
+ const valueField = input?.parentElement;
+ expect(valueField?.className).toContain("w-56");
+ expect(valueField?.className).toContain("shrink-0");
+ expect(input?.className).toContain("w-full");
+ const deleteButton = container
+ .querySelector("svg.lucide-trash-2")
+ ?.closest("button");
+ expect(deleteButton?.previousElementSibling).toBe(valueField);
+
unmount();
});
diff --git a/frontend/src/components/ExprEditor.tsx b/frontend/src/components/ExprEditor.tsx
index 1e561c9755..7b78df6ecc 100644
--- a/frontend/src/components/ExprEditor.tsx
+++ b/frontend/src/components/ExprEditor.tsx
@@ -367,7 +367,7 @@ function SearchableSelect({
type="button"
appearance="outline"
size="md"
- className="w-full bg-background text-left text-control"
+ className="w-full justify-start bg-background text-left text-control"
disabled={disabled}
onClick={handleOpen}
>
@@ -758,7 +758,7 @@ function MultiCheckSelect({
size="xs"
className={cn(
VALUE_MULTI_FIELD_CLASS,
- "h-auto w-full flex-wrap text-left hover:bg-control-bg disabled:pointer-events-none"
+ "h-auto w-full flex-wrap text-left whitespace-normal hover:bg-control-bg disabled:pointer-events-none"
)}
disabled={disabled}
onClick={() => setOpen(!open)}
@@ -1086,7 +1086,7 @@ function ValueInput({
return (
<Input
type="number"
- className="max-w-20"
+ className="w-full"
value={getNumberValue()}
disabled={readonly}
onChange={(e) => setNumberValue(Number(e.target.value))}
@@ -1107,7 +1107,7 @@ function ValueInput({
if (val != null) setBooleanValue(val === "true");
}}
>
- <SelectTrigger className="min-w-24">
+ <SelectTrigger className="w-full">
<SelectValue />
</SelectTrigger>
<SelectContent>
@@ -1119,7 +1119,7 @@ function ValueInput({
}
return (
<Input
- className="min-w-28"
+ className="w-full"
value={getStringValue()}
disabled={readonly}
onChange={(e) => setStringValue(e.target.value)}
@@ -1155,7 +1155,7 @@ function ValueInput({
else setStringValue(val);
}}
>
- <SelectTrigger className="min-w-28">
+ <SelectTrigger className="w-full">
<SelectValue placeholder={t("cel.condition.select-value")}>
{(value: string | null) => {
if (!value) return null;
@@ -1237,7 +1237,7 @@ function ConditionRow({
groupPath={groupPath}
operandIndex={operandIndex}
/>
- <div className="flex-1 min-w-0">
+ <div className="w-56 shrink-0">
<ValueInput
expr={expr}
groupPath={groupPath}
@@ -1248,7 +1248,7 @@ function ConditionRow({
<Button
type="button"
appearance="secondary"
- size="xs"
+ size="sm"
className="shrink-0 text-control-placeholder hover:text-control hover:bg-control-bg"
onClick={() =>
doUpdate((group) => {
@@ -1300,7 +1300,7 @@ function RawStringEditor({
<Button
type="button"
appearance="secondary"
- size="xs"
+ size="sm"
className="shrink-0 text-control-placeholder hover:text-control hover:bg-control-bg"
onClick={() =>
doUpdate((group) => {
@@ -1508,8 +1508,8 @@ function ConditionGroup({
<Button
type="button"
appearance="secondary"
- size="xs"
- className="h-auto px-1.5 py-0.5 text-sm text-control-light hover:bg-control-bg"
+ size="md"
+ className="h-auto gap-1 px-1.5 py-0.5 text-sm text-control-light hover:bg-control-bg"
disabled={readonly}
onClick={addCondition}
>
@@ -1519,8 +1519,8 @@ function ConditionGroup({
<Button
type="button"
appearance="secondary"
- size="xs"
- className="h-auto px-1.5 py-0.5 text-sm text-control-light hover:bg-control-bg"
+ size="md"
+ className="h-auto gap-1 px-1.5 py-0.5 text-sm text-control-light hover:bg-control-bg"
disabled={readonly}
onClick={addRawString}
>
@@ -1535,8 +1535,8 @@ function ConditionGroup({
<Button
type="button"
appearance="secondary"
- size="xs"
- className="h-auto px-1.5 py-0.5 text-sm hover:bg-control-bg"
+ size="md"
+ className="h-auto gap-1 px-1.5 py-0.5 text-sm hover:bg-control-bg"
disabled={readonly}
onClick={addCondition}
>
@@ -1546,8 +1546,8 @@ function ConditionGroup({
<Button
type="button"
appearance="secondary"
- size="xs"
- className="h-auto px-1.5 py-0.5 text-sm hover:bg-control-bg"
+ size="md"
+ className="h-auto gap-1 px-1.5 py-0.5 text-sm hover:bg-control-bg"
disabled={readonly}
onClick={addConditionGroup}
>
@@ -1561,8 +1561,8 @@ function ConditionGroup({
<Button
type="button"
appearance="secondary"
- size="xs"
- className="h-auto px-1.5 py-0.5 text-sm hover:bg-control-bg"
+ size="md"
+ className="h-auto gap-1 px-1.5 py-0.5 text-sm hover:bg-control-bg"
disabled={readonly}
onClick={addRawString}
>
diff --git a/frontend/src/components/IssueLabelSelect.tsx b/frontend/src/components/IssueLabelSelect.tsx
index f44a4ea65c..ecbeaa35e0 100644
--- a/frontend/src/components/IssueLabelSelect.tsx
+++ b/frontend/src/components/IssueLabelSelect.tsx
@@ -119,8 +119,8 @@ export function IssueLabelSelect({
key={label.value}
type="button"
appearance="secondary"
- size="xs"
- className="h-auto w-full px-3 py-2 text-left text-sm hover:bg-control-bg"
+ size="md"
+ className="h-auto w-full min-w-0 justify-start gap-2 px-3 py-2 text-left text-sm hover:bg-control-bg"
onClick={() => toggleLabel(label.value)}
>
<Checkbox checked={isSelected} />
@@ -128,7 +128,12 @@ export function IssueLabelSelect({
className="size-4 rounded-sm shrink-0"
style={{ backgroundColor: getColor(label.color) }}
/>
- <span>{label.value}</span>
+ <span
+ className="min-w-0 flex-1 truncate"
+ title={label.value}
+ >
+ {label.value}
+ </span>
</Button>
);
})
diff --git a/frontend/src/components/MatchedDatabaseView.tsx b/frontend/src/components/MatchedDatabaseView.tsx
index 8875be5b3f..4ac39e52e2 100644
--- a/frontend/src/components/MatchedDatabaseView.tsx
+++ b/frontend/src/components/MatchedDatabaseView.tsx
@@ -316,8 +316,8 @@ export function MatchedDatabaseView({
<Button
type="button"
appearance="secondary"
- size="xs"
- className={`h-auto w-full justify-between border-b border-control-border/60 px-2 py-2 text-left text-sm last:border-b-0 ${
+ size="md"
+ className={`h-auto w-full min-w-0 justify-between border-b border-control-border/60 px-2 py-2 text-left text-sm whitespace-normal last:border-b-0 ${
isEmpty
? "cursor-default text-control-placeholder"
: "cursor-pointer hover:bg-control-bg"
@@ -325,16 +325,18 @@ export function MatchedDatabaseView({
disabled={isEmpty}
onClick={() => toggleSection(section.name)}
>
- <div className="flex items-center gap-x-1">
+ <div className="flex min-w-0 flex-1 items-center gap-x-1">
<ChevronRight
className={`size-4 transition-transform ${
isExpanded ? "rotate-90" : ""
} ${isEmpty ? "text-control-border" : ""}`}
/>
- <span>{section.title}</span>
+ <span className="min-w-0 flex-1 break-words">
+ {section.title}
+ </span>
</div>
{section.totalLabel && (
- <span className="text-control-light text-xs">
+ <span className="shrink-0 text-control-light text-xs">
{section.totalLabel}
</span>
)}
@@ -366,7 +368,7 @@ export function MatchedDatabaseView({
<Button
type="button"
appearance="link"
- size="xs"
+ size="md"
className="self-start h-auto px-2 pb-2 text-sm hover:text-accent/80"
disabled={section.sectionLoading}
onClick={section.onLoadMore}
diff --git a/frontend/src/components/MaxRowCountSelect.tsx b/frontend/src/components/MaxRowCountSelect.tsx
index 4ee7332f9a..810774d1eb 100644
--- a/frontend/src/components/MaxRowCountSelect.tsx
+++ b/frontend/src/components/MaxRowCountSelect.tsx
@@ -77,9 +77,9 @@ export function MaxRowCountSelect({
key={n}
type="button"
appearance="secondary"
- size="xs"
+ size="md"
className={cn(
- "h-auto px-3 py-1.5 text-left text-sm",
+ "h-auto justify-start px-3 py-1.5 text-left text-sm",
"hover:bg-control-bg",
n === value && "bg-control-bg font-medium"
)}
diff --git a/frontend/src/components/ResourceIdField.tsx b/frontend/src/components/ResourceIdField.tsx
index 277e8af706..d1bed7ea41 100644
--- a/frontend/src/components/ResourceIdField.tsx
+++ b/frontend/src/components/ResourceIdField.tsx
@@ -211,7 +211,7 @@ export const ResourceIdField = forwardRef<
<Button
type="button"
appearance="link"
- size="xs"
+ size="md"
className="ml-1 h-auto p-0 font-medium hover:opacity-80"
onClick={() => setManualEdit(true)}
>
diff --git a/frontend/src/components/auth/EmailCodeSigninForm.tsx b/frontend/src/components/auth/EmailCodeSigninForm.tsx
index 1d7c897ea9..fce076243f 100644
--- a/frontend/src/components/auth/EmailCodeSigninForm.tsx
+++ b/frontend/src/components/auth/EmailCodeSigninForm.tsx
@@ -139,7 +139,7 @@ export function EmailCodeSigninForm({ loading, onSignin }: Props) {
<Button
type="button"
appearance="link"
- size="xs"
+ size="md"
className="h-auto p-0 text-sm disabled:text-control-light"
disabled={resendCountdown > 0}
onClick={sendCode}
diff --git a/frontend/src/components/instance/DataSourceSection.tsx b/frontend/src/components/instance/DataSourceSection.tsx
index 645955d13d..4445bf2bc0 100644
--- a/frontend/src/components/instance/DataSourceSection.tsx
+++ b/frontend/src/components/instance/DataSourceSection.tsx
@@ -141,7 +141,7 @@ export function DataSourceSection({
<Button
type="button"
appearance="secondary"
- size="xs"
+ size="md"
className={`h-auto pb-2 px-1 text-sm font-medium border-b-2 ${
dataSourceEditState.editingDataSourceId === adminDataSource.id
? "border-accent text-accent"
@@ -157,7 +157,7 @@ export function DataSourceSection({
<Button
type="button"
appearance="secondary"
- size="xs"
+ size="md"
className={`h-auto pb-2 px-1 text-sm font-medium border-b-2 ${
dataSourceEditState.editingDataSourceId === ds.id
? "border-accent text-accent"
@@ -200,7 +200,7 @@ export function DataSourceSection({
<Button
type="button"
appearance="secondary"
- size="xs"
+ size="md"
className="h-auto px-1 pb-2 text-control-light hover:text-main"
disabled={!allowUpdate}
onClick={handleCreateRODataSource}
diff --git a/frontend/src/components/plan-check/PlanCheckSection.tsx b/frontend/src/components/plan-check/PlanCheckSection.tsx
index 7c02af5392..061d55d1b8 100644
--- a/frontend/src/components/plan-check/PlanCheckSection.tsx
+++ b/frontend/src/components/plan-check/PlanCheckSection.tsx
@@ -96,7 +96,7 @@ export function PlanCheckSection({
<Button
disabled={isRunning || runDisabled}
onClick={() => void onRun()}
- size="xs"
+ size="md"
appearance="outline"
>
<Play className="h-3.5 w-3.5" />
@@ -111,7 +111,7 @@ export function PlanCheckSection({
appearance="secondary"
size="xs"
aria-label={t("plan.navigator.checks")}
- className="cursor-pointer text-left"
+ className="h-auto cursor-pointer justify-start p-0 text-left"
onClick={() => setDrawerOpen(true)}
type="button"
>
@@ -389,8 +389,8 @@ export function PlanCheckResultsDrawer({
<div className="flex justify-center py-4">
<Button
appearance="secondary"
- size="xs"
- className="cursor-pointer text-sm text-accent hover:underline"
+ size="md"
+ className="h-auto cursor-pointer p-0 text-sm text-accent hover:underline"
onClick={() =>
setDisplayCount((count) => count + PAGE_SIZE)
}
diff --git a/frontend/src/components/sql-review/Panels.tsx b/frontend/src/components/sql-review/Panels.tsx
index 051fdd5097..639843cd3a 100644
--- a/frontend/src/components/sql-review/Panels.tsx
+++ b/frontend/src/components/sql-review/Panels.tsx
@@ -268,15 +268,15 @@ function RuleSelectList({
key={key}
type="button"
appearance="secondary"
- size="xs"
- className="h-auto w-full px-4 py-3 text-left hover:bg-control-bg/60"
+ size="md"
+ className="h-auto w-full justify-start gap-x-3 px-4 py-3 text-left whitespace-normal hover:bg-control-bg/60"
onClick={() => onToggleRule(rule)}
>
<Checkbox
checked={selectedRuleKeys.has(key)}
onCheckedChange={() => onToggleRule(rule)}
/>
- <span className="flex-1 text-sm text-control">
+ <span className="min-w-0 flex-1 break-words text-sm text-control">
{loc.title}
</span>
<a
diff --git a/frontend/src/components/sql-review/TemplateSelector.test.tsx b/frontend/src/components/sql-review/TemplateSelector.test.tsx
index c63a752390..713ffedafb 100644
--- a/frontend/src/components/sql-review/TemplateSelector.test.tsx
+++ b/frontend/src/components/sql-review/TemplateSelector.test.tsx
@@ -146,6 +146,7 @@ describe("TemplateSelector", () => {
);
expect(reviewButton).toBeTruthy();
+ expect(reviewButton).toHaveClass("whitespace-normal");
act(() => {
reviewButton?.dispatchEvent(
diff --git a/frontend/src/components/sql-review/TemplateSelector.tsx b/frontend/src/components/sql-review/TemplateSelector.tsx
index 90ebff9f22..823dc72eb6 100644
--- a/frontend/src/components/sql-review/TemplateSelector.tsx
+++ b/frontend/src/components/sql-review/TemplateSelector.tsx
@@ -114,14 +114,14 @@ export function TemplateSelector({
size="xs"
aria-pressed={isSelected(template)}
className={cn(
- "relative h-auto w-full flex-col rounded-sm border border-control-border px-6 py-4 text-left sm:max-w-xs",
+ "relative h-auto w-full flex-col items-start rounded-sm border border-control-border px-6 py-4 text-left whitespace-normal sm:max-w-xs",
"hover:bg-control-bg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2",
isSelected(template) && "bg-control-bg"
)}
onClick={() => onSelectTemplate(template)}
>
- <div className="text-left flex flex-col gap-y-2">
- <span className="text-base font-medium">
+ <div className="flex w-full min-w-0 flex-col gap-y-2 text-left">
+ <span className="break-words text-base font-medium">
{template.review?.name}
</span>
<div className="flex flex-wrap gap-2">
@@ -129,7 +129,7 @@ export function TemplateSelector({
<ResourceBadge key={resource} resource={resource} />
))}
</div>
- <p className="text-sm">
+ <p className="break-words text-sm">
<span className="mr-2">
{t("sql-review.enabled-rules")}:
</span>
@@ -156,22 +156,22 @@ export function TemplateSelector({
size="xs"
aria-pressed={isSelected(template)}
className={cn(
- "relative h-auto w-full flex-col rounded-sm border border-control-border px-6 py-4 text-left sm:max-w-xs",
+ "relative h-auto w-full flex-col items-start rounded-sm border border-control-border px-6 py-4 text-left whitespace-normal sm:max-w-xs",
"hover:bg-control-bg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2",
isSelected(template) && "bg-control-bg"
)}
onClick={() => onSelectTemplate(template)}
>
- <div className="text-left flex flex-col gap-y-2">
- <span className="text-base font-medium">
+ <div className="flex w-full min-w-0 flex-col gap-y-2 text-left">
+ <span className="break-words text-base font-medium">
{t(`sql-review.template.${template.id.split(".").join("-")}`)}
</span>
- <p className="text-sm text-control-light">
+ <p className="break-words text-sm text-control-light">
{t(
`sql-review.template.${template.id.split(".").join("-")}-desc`
)}
</p>
- <p className="text-sm">
+ <p className="break-words text-sm">
<span className="mr-2">{t("sql-review.enabled-rules")}:</span>
<span>{template.ruleList.length}</span>
</p>
diff --git a/frontend/src/components/ui/button.test.tsx b/frontend/src/components/ui/button.test.tsx
index 71215fc2b6..41135f8e85 100644
--- a/frontend/src/components/ui/button.test.tsx
+++ b/frontend/src/components/ui/button.test.tsx
@@ -10,4 +10,20 @@ describe("buttonVariants", () => {
expect(className).not.toContain("h-9");
expect(className).not.toContain("px-3");
});
+
+ test("preserves an explicit content-sized body-text control contract", () => {
+ const className = buttonVariants({
+ size: "md",
+ className: "h-auto gap-1 px-1.5 py-0.5 text-sm",
+ });
+
+ expect(className).toContain("h-auto");
+ expect(className).toContain("gap-1");
+ expect(className).toContain("px-1.5");
+ expect(className).toContain("py-0.5");
+ expect(className).toContain("text-sm");
+ expect(className).not.toContain("h-9");
+ expect(className).not.toContain("gap-1.5");
+ expect(className).not.toContain("px-3");
+ });
});
diff --git a/frontend/src/modules/agent/components/AgentInput.tsx b/frontend/src/modules/agent/components/AgentInput.tsx
index b5324e29c8..ebc8f176f4 100644
--- a/frontend/src/modules/agent/components/AgentInput.tsx
+++ b/frontend/src/modules/agent/components/AgentInput.tsx
@@ -700,7 +700,7 @@ export function AgentInput() {
<div className="mt-2 flex flex-wrap gap-x-2 gap-y-2">
<Button
appearance="secondary"
- size="xs"
+ size="md"
className="rounded-xs bg-error px-3 py-2 text-sm text-accent-text hover:bg-error/90 disabled:opacity-50"
disabled={isCurrentChatRunning}
onClick={retryLastTurn}
@@ -709,7 +709,7 @@ export function AgentInput() {
</Button>
<Button
appearance="secondary"
- size="xs"
+ size="md"
className="rounded-xs border px-3 py-2 text-sm text-control hover:bg-control-bg disabled:opacity-50"
disabled={isCurrentChatRunning}
onClick={dismissInterrupted}
@@ -732,7 +732,7 @@ export function AgentInput() {
<div className="flex flex-wrap gap-x-2 gap-y-2">
<Button
appearance="secondary"
- size="xs"
+ size="md"
className="rounded-xs bg-accent px-3 py-2 text-sm text-accent-text hover:bg-accent-hover disabled:opacity-50"
disabled={isCurrentChatRunning}
onClick={() => submitConfirmation(true)}
@@ -741,7 +741,7 @@ export function AgentInput() {
</Button>
<Button
appearance="secondary"
- size="xs"
+ size="md"
className="rounded-xs border px-3 py-2 text-sm text-control hover:bg-control-bg disabled:opacity-50"
disabled={isCurrentChatRunning}
onClick={() => submitConfirmation(false)}
@@ -755,15 +755,17 @@ export function AgentInput() {
{chooseOptions.map((option) => (
<Button
appearance="secondary"
- size="xs"
+ size="md"
key={option.value}
- className="rounded-xs border px-3 py-2 text-left text-sm hover:bg-control-bg disabled:opacity-50"
+ className="h-auto w-full flex-col items-start justify-start rounded-xs border px-3 py-2 text-left text-sm whitespace-normal hover:bg-control-bg disabled:opacity-50"
disabled={isCurrentChatRunning}
onClick={() => submitChoice(option)}
>
- <div className="font-medium text-main">{option.label}</div>
+ <div className="w-full min-w-0 break-words font-medium text-main">
+ {option.label}
+ </div>
{option.description && (
- <div className="mt-1 text-xs text-control-light">
+ <div className="mt-1 w-full min-w-0 break-words text-xs text-control-light">
{option.description}
</div>
)}
diff --git a/frontend/src/modules/agent/components/AgentWindow.tsx b/frontend/src/modules/agent/components/AgentWindow.tsx
index a8ac616b09..a73f8b7c38 100644
--- a/frontend/src/modules/agent/components/AgentWindow.tsx
+++ b/frontend/src/modules/agent/components/AgentWindow.tsx
@@ -1083,9 +1083,9 @@ export function AgentWindow() {
<div className="flex items-start gap-x-2">
<Button
appearance="secondary"
- size="xs"
+ size="md"
type="button"
- className="min-w-0 flex-1 text-left disabled:cursor-not-allowed disabled:opacity-60"
+ className="h-auto min-w-0 flex-1 flex-col items-start p-0 text-left whitespace-normal disabled:cursor-not-allowed disabled:opacity-60"
disabled={
!useAgentStore.getState().canSelectChat(chat.id)
}
@@ -1095,13 +1095,13 @@ export function AgentWindow() {
onClick={() => handleChatRowClick(chat.id)}
>
<div
- className="truncate font-medium"
+ className="w-full truncate font-medium"
data-agent-chat-title
>
{getChatLabel(chat)}
</div>
<span
- className={`mt-1 block truncate text-xs ${
+ className={`mt-1 block w-full truncate text-xs ${
chat.id === currentChatId
? "text-accent/80"
: "text-control-light"
@@ -1245,7 +1245,7 @@ function ConfirmDialog({
) : (
<Button
appearance="secondary"
- size="xs"
+ size="sm"
className="rounded-xs border px-2 py-1.5 text-xs font-medium text-control-light hover:bg-background"
onClick={(event) => event.stopPropagation()}
{...triggerProps}
@@ -1271,8 +1271,8 @@ function ConfirmDialog({
render={
<Button
appearance="secondary"
- size="xs"
- className="rounded-xs border px-3 py-1.5 text-sm font-medium text-control-light hover:bg-control-bg"
+ size="md"
+ className="h-auto rounded-xs border px-3 py-1.5 text-sm font-medium text-control-light hover:bg-control-bg"
>
{t("common.cancel")}
</Button>
@@ -1282,8 +1282,8 @@ function ConfirmDialog({
render={
<Button
appearance="secondary"
- size="xs"
- className="rounded-xs bg-accent px-3 py-1.5 text-sm font-medium text-accent-text hover:bg-accent-hover"
+ size="md"
+ className="h-auto rounded-xs bg-accent px-3 py-1.5 text-sm font-medium text-accent-text hover:bg-accent-hover"
onClick={onConfirm}
>
{t("common.confirm")}
diff --git a/frontend/src/modules/schema-editor/Panels/TableColumnEditor/DataTypeCell.tsx b/frontend/src/modules/schema-editor/Panels/TableColumnEditor/DataTypeCell.tsx
index 6d16039663..c089ebdfbb 100644
--- a/frontend/src/modules/schema-editor/Panels/TableColumnEditor/DataTypeCell.tsx
+++ b/frontend/src/modules/schema-editor/Panels/TableColumnEditor/DataTypeCell.tsx
@@ -174,11 +174,11 @@ export function DataTypeCell({
{suggestions.map((type) => (
<Button
appearance="secondary"
- size="xs"
+ size="md"
key={type}
type="button"
className={cn(
- "block w-full px-3 py-1 text-left text-sm hover:bg-control-bg",
+ "h-auto w-full justify-start px-3 py-1 text-left text-sm hover:bg-control-bg",
type === value && "bg-accent/5 text-accent"
)}
// onMouseDown (not onClick) so selection happens before the
diff --git a/frontend/src/modules/sql-editor/components/ConnectChooser.test.tsx b/frontend/src/modules/sql-editor/components/ConnectChooser.test.tsx
index e2cae43046..05d6f25c4d 100644
--- a/frontend/src/modules/sql-editor/components/ConnectChooser.test.tsx
+++ b/frontend/src/modules/sql-editor/components/ConnectChooser.test.tsx
@@ -30,12 +30,24 @@ vi.mock("@/components/ui/combobox-position", () => ({
vi.mock("@/components/ui/search-input", () => ({
SearchInput: ({
+ className,
value,
onChange,
+ size,
}: {
+ className?: string;
value: string;
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
- }) => <input data-testid="search" value={value} onChange={onChange} />,
+ size?: string;
+ }) => (
+ <input
+ data-testid="search"
+ data-size={size}
+ data-class-name={className}
+ value={value}
+ onChange={onChange}
+ />
+ ),
}));
vi.mock("@/components/HighlightLabelText", () => ({
@@ -277,6 +289,25 @@ describe("ConnectChooser", () => {
unmount();
});
+ test("uses the shared compact search control in the dropdown", () => {
+ const { container, render, unmount } = renderIntoContainer(
+ <ConnectChooser
+ value=""
+ onChange={vi.fn()}
+ options={defaultOptions}
+ isChosen={false}
+ placeholder="Select schema"
+ />
+ );
+ render();
+ act(() => container.querySelector("button")?.click());
+
+ const search = document.body.querySelector("[data-testid='search']");
+ expect(search?.getAttribute("data-size")).toBe("sm");
+ expect(search?.getAttribute("data-class-name")).toBeNull();
+ unmount();
+ });
+
test("opens the dropdown when the external open signal changes", () => {
const container = document.createElement("div");
const root = createRoot(container);
diff --git a/frontend/src/modules/sql-editor/components/ConnectChooser.tsx b/frontend/src/modules/sql-editor/components/ConnectChooser.tsx
index ba6848e475..28f10aef7c 100644
--- a/frontend/src/modules/sql-editor/components/ConnectChooser.tsx
+++ b/frontend/src/modules/sql-editor/components/ConnectChooser.tsx
@@ -179,10 +179,10 @@ export function ConnectChooser({
>
<SearchInput
ref={inputRef}
+ size="sm"
value={search}
onChange={(e) => setSearch(e.target.value)}
wrapperClassName="m-2"
- className="h-7"
/>
<div className="max-h-60 overflow-y-auto">
{filteredOptions.length === 0 ? (
@@ -195,11 +195,11 @@ export function ConnectChooser({
return (
<Button
appearance="secondary"
- size="xs"
+ size="md"
key={option.value}
type="button"
className={cn(
- "w-full text-left px-3 py-1.5 text-sm flex items-center gap-x-2 transition-colors",
+ "h-auto w-full justify-start px-3 py-1.5 text-left text-sm transition-colors",
"hover:bg-control-bg",
isSelected && "bg-accent/5"
)}
@@ -264,8 +264,11 @@ export function ConnectChooser({
<Button
ref={triggerRef}
variant="default"
- size="sm"
- className={cn("min-w-[10rem] rounded-r-none", triggerClassName)}
+ size="md"
+ className={cn(
+ "h-auto min-w-[10rem] gap-1 rounded-r-none px-1.5 py-1 text-sm",
+ triggerClassName
+ )}
aria-label={placeholder}
aria-expanded={open}
onClick={() => setOpen((v) => !v)}
diff --git a/frontend/src/modules/sql-editor/components/ConnectionPane/ConnectionPane.tsx b/frontend/src/modules/sql-editor/components/ConnectionPane/ConnectionPane.tsx
index c2646c55df..be572a64d8 100644
--- a/frontend/src/modules/sql-editor/components/ConnectionPane/ConnectionPane.tsx
+++ b/frontend/src/modules/sql-editor/components/ConnectionPane/ConnectionPane.tsx
@@ -1162,9 +1162,9 @@ function LoadMoreButton({
<div className="w-full flex items-center justify-start pl-4">
<Button
appearance="secondary"
- size="xs"
+ size="md"
type="button"
- className="text-sm text-accent hover:underline disabled:opacity-50"
+ className="h-auto p-0 text-sm text-accent hover:underline disabled:opacity-50"
disabled={loading}
onClick={() => void onLoadMore()}
>
diff --git a/frontend/src/modules/sql-editor/components/SchemaChooser.test.tsx b/frontend/src/modules/sql-editor/components/SchemaChooser.test.tsx
index 79dd0d1fbb..43e6e59aeb 100644
--- a/frontend/src/modules/sql-editor/components/SchemaChooser.test.tsx
+++ b/frontend/src/modules/sql-editor/components/SchemaChooser.test.tsx
@@ -66,13 +66,21 @@ vi.mock("./ConnectChooser", () => ({
options,
isChosen,
value,
+ dropdownMinWidth,
+ triggerClassName,
}: {
placeholder: string;
options: { value: string; label: string }[];
isChosen: boolean;
value: string;
+ dropdownMinWidth?: number;
+ triggerClassName?: string;
}) => (
- <div data-testid="connect-chooser">
+ <div
+ data-testid="connect-chooser"
+ data-dropdown-min-width={dropdownMinWidth}
+ data-trigger-class-name={triggerClassName}
+ >
<span data-testid="placeholder">{placeholder}</span>
<span data-testid="value">{value}</span>
<span data-testid="is-chosen">{String(isChosen)}</span>
@@ -154,6 +162,18 @@ describe("SchemaChooser", () => {
unmount();
});
+ test("keeps the schema menu wide enough for option labels", () => {
+ const { container, render, unmount } = renderIntoContainer(
+ <SchemaChooser />
+ );
+ render();
+
+ const chooser = container.querySelector("[data-testid='connect-chooser']");
+ expect(chooser?.getAttribute("data-dropdown-min-width")).toBe("192");
+ expect(chooser?.getAttribute("data-trigger-class-name")).toBeNull();
+ unmount();
+ });
+
test("options include unspecified entry and each schema name", () => {
const { container, render, unmount } = renderIntoContainer(
<SchemaChooser />
diff --git a/frontend/src/modules/sql-editor/components/SchemaChooser.tsx b/frontend/src/modules/sql-editor/components/SchemaChooser.tsx
index ed0df75fde..dde8148b33 100644
--- a/frontend/src/modules/sql-editor/components/SchemaChooser.tsx
+++ b/frontend/src/modules/sql-editor/components/SchemaChooser.tsx
@@ -81,6 +81,7 @@ export function SchemaChooser() {
options={options}
isChosen={isChosen}
placeholder={t("database.schema.select")}
+ dropdownMinWidth={192}
/>
);
}
diff --git a/frontend/src/modules/sql-editor/components/TerminalPanel/TerminalPanel.tsx b/frontend/src/modules/sql-editor/components/TerminalPanel/TerminalPanel.tsx
index 495c7520cd..62657ebe66 100644
--- a/frontend/src/modules/sql-editor/components/TerminalPanel/TerminalPanel.tsx
+++ b/frontend/src/modules/sql-editor/components/TerminalPanel/TerminalPanel.tsx
@@ -248,9 +248,9 @@ export function TerminalPanel() {
{query === currentQuery && expired && (
<Button
appearance="secondary"
- size="xs"
+ size="md"
type="button"
- className="text-control-placeholder cursor-pointer hover:underline text-sm select-none"
+ className="h-auto cursor-pointer p-0 text-sm text-control-placeholder hover:underline select-none"
onClick={handleCancelQuery}
>
{t("common.cancel")}
diff --git a/frontend/src/routes/auth/PasswordResetPage.tsx b/frontend/src/routes/auth/PasswordResetPage.tsx
index 4b19ad60ce..577ded6533 100644
--- a/frontend/src/routes/auth/PasswordResetPage.tsx
+++ b/frontend/src/routes/auth/PasswordResetPage.tsx
@@ -233,9 +233,9 @@ export function PasswordResetPage() {
<div className="mt-2 flex items-center justify-end">
<Button
appearance="secondary"
- size="xs"
+ size="md"
type="button"
- className="text-sm text-accent disabled:text-control-light disabled:cursor-not-allowed"
+ className="h-auto p-0 text-sm text-accent disabled:text-control-light disabled:cursor-not-allowed"
disabled={resendCountdown > 0}
onClick={resendCode}
>
diff --git a/frontend/src/routes/project/ProjectPlanDashboardPage.tsx b/frontend/src/routes/project/ProjectPlanDashboardPage.tsx
index 70a51911af..5c15c315b6 100644
--- a/frontend/src/routes/project/ProjectPlanDashboardPage.tsx
+++ b/frontend/src/routes/project/ProjectPlanDashboardPage.tsx
@@ -817,7 +817,7 @@ function DatabaseAndGroupSelector({
<div className="flex border-b border-control-border">
<Button
appearance="secondary"
- size="xs"
+ size="md"
type="button"
className={cn(
"px-4 py-2 text-sm font-medium border-b-2 -mb-px transition-colors",
@@ -834,7 +834,7 @@ function DatabaseAndGroupSelector({
</Button>
<Button
appearance="secondary"
- size="xs"
+ size="md"
type="button"
className={cn(
"px-4 py-2 text-sm font-medium border-b-2 -mb-px transition-colors",
diff --git a/frontend/src/routes/project/ProjectSettingsPage.tsx b/frontend/src/routes/project/ProjectSettingsPage.tsx
index c1d8af4c1d..a2d52a8e03 100644
--- a/frontend/src/routes/project/ProjectSettingsPage.tsx
+++ b/frontend/src/routes/project/ProjectSettingsPage.tsx
@@ -1210,19 +1210,21 @@ export function ProjectSettingsPage() {
reviewPolicyList.map((policy) => (
<Button
appearance="secondary"
- size="xs"
+ size="md"
key={policy.id}
type="button"
- className="w-full text-left px-4 py-3 border border-control-border rounded-sm hover:bg-control-bg transition-colors"
+ className="h-auto w-full flex-col items-start rounded-sm border border-control-border px-4 py-3 text-left whitespace-normal transition-colors hover:bg-control-bg"
onClick={() => {
setPendingReviewPolicy(policy);
setEnforceReview(true);
setShowReviewDialog(false);
}}
>
- <div className="font-medium">{policy.name}</div>
+ <div className="w-full min-w-0 break-words font-medium">
+ {policy.name}
+ </div>
{policy.resources.length > 0 && (
- <div className="text-xs text-control-light mt-1">
+ <div className="mt-1 w-full min-w-0 break-words text-xs text-control-light">
{policy.resources.length}{" "}
{t("common.resource", {
count: policy.resources.length,
diff --git a/frontend/src/routes/project/ProjectSyncSchemaPage.tsx b/frontend/src/routes/project/ProjectSyncSchemaPage.tsx
index 1c050b7dd1..0dc8876e1a 100644
--- a/frontend/src/routes/project/ProjectSyncSchemaPage.tsx
+++ b/frontend/src/routes/project/ProjectSyncSchemaPage.tsx
@@ -841,11 +841,11 @@ function ChangelogSelector({
{entries.map((entry) => (
<Button
appearance="secondary"
- size="xs"
+ size="md"
key={entry.name}
type="button"
className={cn(
- "w-full text-left px-3 py-2 text-sm flex items-center gap-2 transition-colors",
+ "h-auto w-full justify-start px-3 py-2 text-left text-sm transition-colors",
"hover:bg-control-bg",
entry.name === value && "bg-accent/5"
)}
@@ -860,9 +860,9 @@ function ChangelogSelector({
{nextPageToken && (
<Button
appearance="secondary"
- size="xs"
+ size="md"
type="button"
- className="w-full text-center px-3 py-2 text-sm text-accent hover:bg-control-bg transition-colors"
+ className="h-auto w-full px-3 py-2 text-center text-sm text-accent hover:bg-control-bg transition-colors"
onClick={(e) => {
e.stopPropagation();
loadMore();
@@ -1075,8 +1075,8 @@ function SourceSchemaInfo({
<>
<Button
appearance="secondary"
- size="xs"
- className="inline-flex items-center gap-x-1 px-2.5 py-0.5 rounded-full bg-control-bg hover:bg-control-bg-hover text-sm transition-colors"
+ size="md"
+ className="h-auto inline-flex items-center gap-x-1 px-2.5 py-0.5 rounded-full bg-control-bg text-sm transition-colors hover:bg-control-bg-hover"
onClick={gotoDatabase}
>
<span className="opacity-60">{t("common.database")}</span>
@@ -1090,8 +1090,8 @@ function SourceSchemaInfo({
</Button>
<Button
appearance="secondary"
- size="xs"
- className="inline-flex items-center gap-x-1 px-2.5 py-0.5 rounded-full bg-control-bg hover:bg-control-bg-hover text-sm transition-colors"
+ size="md"
+ className="h-auto inline-flex items-center gap-x-1 px-2.5 py-0.5 rounded-full bg-control-bg text-sm transition-colors hover:bg-control-bg-hover"
onClick={gotoChangelog}
>
<span className="opacity-60 mr-1">{t("common.changelog")}</span>
@@ -1597,7 +1597,7 @@ function DiffViewPanel({
<div className="flex border-b border-control-border gap-x-4">
<Button
appearance="secondary"
- size="xs"
+ size="md"
className={cn(
"relative h-auto px-1 pb-2 text-sm font-medium transition-colors cursor-pointer",
tab === "diff"
@@ -1610,7 +1610,7 @@ function DiffViewPanel({
</Button>
<Button
appearance="secondary"
- size="xs"
+ size="md"
className={cn(
"relative h-auto px-1 pb-2 text-sm font-medium transition-colors cursor-pointer",
tab === "ddl"
diff --git a/frontend/src/routes/project/database-detail/revision/ImportRevisionSheet.tsx b/frontend/src/routes/project/database-detail/revision/ImportRevisionSheet.tsx
index 2466957994..8c5356b839 100644
--- a/frontend/src/routes/project/database-detail/revision/ImportRevisionSheet.tsx
+++ b/frontend/src/routes/project/database-detail/revision/ImportRevisionSheet.tsx
@@ -587,17 +587,17 @@ function SourceOption({
return (
<Button
appearance="secondary"
- size="xs"
+ size="md"
type="button"
role="radio"
aria-checked={selected}
className={cn(
- "w-full rounded-sm border border-control-border p-4 text-left transition-colors",
+ "h-auto w-full items-start justify-start rounded-sm border border-control-border p-4 text-left whitespace-normal transition-colors",
selected && "border-accent bg-control-bg"
)}
onClick={() => onSelect(value)}
>
- <div className="flex items-start gap-x-3">
+ <div className="flex w-full min-w-0 items-start gap-x-3">
<span
className={cn(
"mt-1 flex size-4 items-center justify-center rounded-full border border-control-border",
@@ -605,9 +605,13 @@ function SourceOption({
)}
/>
{icon}
- <div className="flex-1">
- <div className="text-lg font-medium text-control">{title}</div>
- <p className="mt-1 text-sm text-control-light">{description}</p>
+ <div className="min-w-0 flex-1">
+ <div className="break-words text-lg font-medium text-control">
+ {title}
+ </div>
+ <p className="mt-1 break-words text-sm text-control-light">
+ {description}
+ </p>
</div>
</div>
</Button>
diff --git a/frontend/src/routes/project/issue-detail/components/IssueDetailLabels.tsx b/frontend/src/routes/project/issue-detail/components/IssueDetailLabels.tsx
index 71c4ddfefb..06b1b27f04 100644
--- a/frontend/src/routes/project/issue-detail/components/IssueDetailLabels.tsx
+++ b/frontend/src/routes/project/issue-detail/components/IssueDetailLabels.tsx
@@ -140,7 +140,7 @@ export function IssueDetailLabels() {
<div ref={containerRef} className="relative">
<Button
appearance="secondary"
- size="xs"
+ size="md"
className={cn(
"flex min-h-9 w-full items-center justify-between gap-2 rounded-sm border border-control-border bg-background px-3 py-1.5 text-left text-sm transition-colors",
allowChange && !isUpdating && "hover:bg-control-bg",
@@ -228,9 +228,9 @@ export function IssueDetailLabels() {
return (
<Button
appearance="secondary"
- size="xs"
+ size="md"
key={option.value}
- className="flex w-full items-center gap-x-2 px-3 py-2 text-left text-sm transition-colors hover:bg-control-bg"
+ className="flex w-full min-w-0 justify-start gap-x-2 px-3 py-2 text-left text-sm transition-colors hover:bg-control-bg"
disabled={isUpdating}
onClick={() => {
void toggleLabel(option.value);
@@ -242,7 +242,12 @@ export function IssueDetailLabels() {
className="size-4 shrink-0 rounded-sm"
style={{ backgroundColor: option.color }}
/>
- <span>{option.value}</span>
+ <span
+ className="min-w-0 flex-1 truncate"
+ title={option.value}
+ >
+ {option.value}
+ </span>
</Button>
);
})
diff --git a/frontend/src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx b/frontend/src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx
index 9896b9678e..035eaa6714 100644
--- a/frontend/src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx
+++ b/frontend/src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx
@@ -1697,7 +1697,7 @@ function DatabaseAndGroupSelector({
<div className="flex border-b border-control-border">
<Button
appearance="secondary"
- size="xs"
+ size="md"
type="button"
className={cn(
"border-b-2 -mb-px px-4 py-2 text-sm font-medium transition-colors",
@@ -1714,7 +1714,7 @@ function DatabaseAndGroupSelector({
</Button>
<Button
appearance="secondary"
- size="xs"
+ size="md"
type="button"
className={cn(
"border-b-2 -mb-px px-4 py-2 text-sm font-medium transition-colors",
diff --git a/frontend/src/routes/project/plan-detail/components/PlanDetailMeta.tsx b/frontend/src/routes/project/plan-detail/components/PlanDetailMeta.tsx
index 1468e9a1c8..f00f797286 100644
--- a/frontend/src/routes/project/plan-detail/components/PlanDetailMeta.tsx
+++ b/frontend/src/routes/project/plan-detail/components/PlanDetailMeta.tsx
@@ -238,9 +238,9 @@ function InlineLabels({
return (
<Button
appearance="secondary"
- size="xs"
+ size="md"
key={option.value}
- className="flex w-full items-center gap-x-2 px-3 py-2 text-left text-sm transition-colors hover:bg-control-bg"
+ className="flex w-full min-w-0 justify-start gap-x-2 px-3 py-2 text-left text-sm transition-colors hover:bg-control-bg"
disabled={isUpdating}
onClick={() => void toggleLabel(option.value)}
type="button"
@@ -254,7 +254,12 @@ function InlineLabels({
: undefined,
}}
/>
- <span>{option.value}</span>
+ <span
+ className="min-w-0 flex-1 truncate"
+ title={option.value}
+ >
+ {option.value}
+ </span>
</Button>
);
})
diff --git a/frontend/src/routes/project/plan-detail/components/PlanDetailTabStrip.tsx b/frontend/src/routes/project/plan-detail/components/PlanDetailTabStrip.tsx
index d6f91578ea..7f918c8540 100644
--- a/frontend/src/routes/project/plan-detail/components/PlanDetailTabStrip.tsx
+++ b/frontend/src/routes/project/plan-detail/components/PlanDetailTabStrip.tsx
@@ -67,10 +67,10 @@ export function PlanDetailTabItem({
>
<Button
appearance="secondary"
- size="xs"
+ size="md"
aria-label={accessibleLabel}
className={cn(
- "flex min-h-9 min-w-0 items-center gap-2 px-4 py-2 text-left",
+ "flex min-h-9 min-w-0 items-center justify-start gap-2 px-4 py-2 text-left",
boundedWidth ? "flex-1" : "shrink-0"
)}
onClick={onSelect}
diff --git a/frontend/src/routes/project/plan-detail/components/deploy/DeployPendingTasksSection.tsx b/frontend/src/routes/project/plan-detail/components/deploy/DeployPendingTasksSection.tsx
index dc6f483323..83acac4290 100644
--- a/frontend/src/routes/project/plan-detail/components/deploy/DeployPendingTasksSection.tsx
+++ b/frontend/src/routes/project/plan-detail/components/deploy/DeployPendingTasksSection.tsx
@@ -145,8 +145,8 @@ export function DeployPendingTasksSection({
<div className="flex items-center gap-2 bg-control-bg/50 px-3 py-2">
<Button
appearance="secondary"
- size="xs"
- className="flex flex-1 items-center gap-2 text-left"
+ size="md"
+ className="h-auto min-w-0 flex-1 items-center justify-start gap-2 p-0 text-left"
onClick={() => toggleEnv(group.environment)}
type="button"
>
@@ -155,10 +155,15 @@ export function DeployPendingTasksSection({
) : (
<ChevronRight className="h-4 w-4 text-control-light" />
)}
- <span className="font-medium">
+ <span
+ className="min-w-0 flex-1 truncate font-medium"
+ title={extractEnvironmentResourceName(
+ group.environment
+ )}
+ >
{extractEnvironmentResourceName(group.environment)}
</span>
- <span className="text-xs text-control-light">
+ <span className="shrink-0 text-xs text-control-light">
{t("rollout.pending-tasks-preview.task-count", {
count: group.tasks.length,
})}
diff --git a/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskFilter.tsx b/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskFilter.tsx
index 0eb6e375b6..a253dcfcb6 100644
--- a/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskFilter.tsx
+++ b/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskFilter.tsx
@@ -27,10 +27,10 @@ export function DeployTaskFilter({
return (
<Button
appearance="secondary"
- size="xs"
+ size="md"
key={status}
className={[
- "inline-flex items-center gap-1 rounded-full border px-2 py-1",
+ "h-auto inline-flex items-center gap-1 rounded-full border px-2 py-1",
checked
? "border-accent bg-accent/10"
: "border-control-border bg-background",
diff --git a/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskHeader.tsx b/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskHeader.tsx
index a6a47fb781..2f0334843b 100644
--- a/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskHeader.tsx
+++ b/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskHeader.tsx
@@ -75,9 +75,9 @@ export function DeployTaskHeader({
out to the caret. */}
<Button
appearance="secondary"
- size="xs"
+ size="md"
aria-expanded={isExpanded}
- className="flex min-w-0 cursor-pointer items-center gap-x-2 rounded-sm border-0 bg-transparent p-0 text-left outline-none hover:bg-control-bg/50 focus-visible:ring-2 focus-visible:ring-accent"
+ className="h-auto min-w-0 cursor-pointer items-center justify-start gap-x-2 rounded-sm border-0 bg-transparent p-0 text-left whitespace-normal outline-none hover:bg-control-bg/50 focus-visible:ring-2 focus-visible:ring-accent"
onClick={onToggleExpand}
type="button"
>
diff --git a/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskRunHistorySheet.tsx b/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskRunHistorySheet.tsx
index 8eb8857227..361cd33177 100644
--- a/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskRunHistorySheet.tsx
+++ b/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskRunHistorySheet.tsx
@@ -119,9 +119,9 @@ function TaskRunHistoryItem({
<div className="rounded-sm border">
<Button
appearance="secondary"
- size="xs"
+ size="md"
aria-expanded={isExpanded}
- className="flex w-full items-center gap-x-2 rounded-sm px-3 py-2 text-left hover:bg-control-bg focus-visible:ring-2 focus-visible:ring-accent"
+ className="h-auto w-full items-center justify-start gap-x-2 rounded-sm px-3 py-2 text-left whitespace-normal hover:bg-control-bg focus-visible:ring-2 focus-visible:ring-accent"
onClick={onToggle}
type="button"
>
diff --git a/frontend/src/routes/project/plan-detail/components/lifecycle/PlanStatusAction.tsx b/frontend/src/routes/project/plan-detail/components/lifecycle/PlanStatusAction.tsx
index 23e1ae5033..df1b786e3d 100644
--- a/frontend/src/routes/project/plan-detail/components/lifecycle/PlanStatusAction.tsx
+++ b/frontend/src/routes/project/plan-detail/components/lifecycle/PlanStatusAction.tsx
@@ -151,7 +151,7 @@ export function PlanStatusAction({
function GateLabel({ title, subtitle }: { title: string; subtitle: string }) {
return (
<span className="min-w-0 flex-1">
- <span className="block text-sm font-medium leading-tight text-main">
+ <span className="block break-words text-sm font-medium leading-tight text-main">
{title}
</span>
{subtitle && (
@@ -182,8 +182,8 @@ function GateRow({
<div>
<Button
appearance="secondary"
- size="xs"
- className="flex w-full items-center gap-3 px-4 py-3 text-left hover:bg-control-bg/40"
+ size="md"
+ className="h-auto w-full items-center justify-start gap-3 px-4 py-3 text-left whitespace-normal hover:bg-control-bg/40"
onClick={onToggle}
type="button"
>
diff --git a/frontend/src/routes/workspace/GlobalMaskingPage.tsx b/frontend/src/routes/workspace/GlobalMaskingPage.tsx
index d3c2ed6956..71d0484e3a 100644
--- a/frontend/src/routes/workspace/GlobalMaskingPage.tsx
+++ b/frontend/src/routes/workspace/GlobalMaskingPage.tsx
@@ -205,7 +205,7 @@ function MaskingRuleConfig({
<div className="flex items-center h-9">
{!readonly ? (
<Input
- size="sm"
+ size="md"
className="w-64"
placeholder={defaultTitle}
value={title}
diff --git a/frontend/src/routes/workspace/RolesPage.tsx b/frontend/src/routes/workspace/RolesPage.tsx
index 79fe0a7670..4075781862 100644
--- a/frontend/src/routes/workspace/RolesPage.tsx
+++ b/frontend/src/routes/workspace/RolesPage.tsx
@@ -128,9 +128,9 @@ function PermissionTransfer({
<div className="flex items-center gap-x-2 px-3 py-2 border-b">
<Button
appearance="secondary"
- size="xs"
+ size="md"
type="button"
- className="text-sm text-main hover:text-accent disabled:opacity-50"
+ className="h-auto px-1.5 py-0.5 text-sm text-main hover:text-accent disabled:opacity-50"
disabled={disabled || sourceItems.length === 0}
onClick={selectAll}
>
@@ -171,9 +171,9 @@ function PermissionTransfer({
<div className="flex items-center gap-x-2 px-3 py-2 border-b">
<Button
appearance="secondary"
- size="xs"
+ size="md"
type="button"
- className="text-sm text-main hover:text-accent disabled:opacity-50"
+ className="h-auto px-1.5 py-0.5 text-sm text-main hover:text-accent disabled:opacity-50"
disabled={disabled || value.length === 0}
onClick={clearAll}
>
diff --git a/frontend/src/routes/workspace/SemanticTypesPage.tsx b/frontend/src/routes/workspace/SemanticTypesPage.tsx
index 1d28a75511..b992116eb9 100644
--- a/frontend/src/routes/workspace/SemanticTypesPage.tsx
+++ b/frontend/src/routes/workspace/SemanticTypesPage.tsx
@@ -642,7 +642,7 @@ function MaskingAlgorithmDrawer({
{maskingTypeOptions.map((opt) => (
<Button
appearance="secondary"
- size="xs"
+ size="md"
key={opt.value}
className={`px-3 py-2 text-sm border rounded-sm transition-colors ${
maskingType === opt.value