Skip to content

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

refactor(react): unify form sm size and drop Button size="icon" (#20221)

boojack887495cdfde8
diff --git a/frontend/src/react/components/AuditLogTable.tsx b/frontend/src/react/components/AuditLogTable.tsx
index 88f56b0221..4ceea40616 100644
--- a/frontend/src/react/components/AuditLogTable.tsx
+++ b/frontend/src/react/components/AuditLogTable.tsx
@@ -201,7 +201,7 @@ function JSONStringView({ jsonString }: { jsonString: string }) {
</DialogTitle>
<Button
variant="ghost"
- size="icon"
+ size="sm"
aria-label={t("common.close")}
onClick={() => setShowModal(false)}
>
diff --git a/frontend/src/react/components/BannersWrapper.tsx b/frontend/src/react/components/BannersWrapper.tsx
index 416ca1f70d..f0e0bd633f 100644
--- a/frontend/src/react/components/BannersWrapper.tsx
+++ b/frontend/src/react/components/BannersWrapper.tsx
@@ -69,8 +69,8 @@ function BannerDismissButton({
<Button
type="button"
variant="ghost"
- size="icon"
- className="size-8 text-white hover:bg-white/10 hover:text-white"
+ size="sm"
+ className="text-white hover:bg-white/10 hover:text-white"
onClick={onClick}
>
<span className="sr-only">{label}</span>
diff --git a/frontend/src/react/components/CustomApproval/RulesSection.tsx b/frontend/src/react/components/CustomApproval/RulesSection.tsx
index f6991b075e..3130c34680 100644
--- a/frontend/src/react/components/CustomApproval/RulesSection.tsx
+++ b/frontend/src/react/components/CustomApproval/RulesSection.tsx
@@ -127,16 +127,14 @@ function SortableRow({
<div className="flex items-center gap-x-1">
<Button
variant="destructive"
- size="sm"
- className="h-6 px-2 text-xs"
+ size="xs"
onClick={handleConfirmDelete}
>
{t("common.delete")}
</Button>
<Button
variant="outline"
- size="sm"
- className="h-6 px-2 text-xs"
+ size="xs"
onClick={() => setConfirmingDelete(false)}
>
{t("common.cancel")}
diff --git a/frontend/src/react/components/DataExportButton.tsx b/frontend/src/react/components/DataExportButton.tsx
index 2fa9bbdc11..4bd46cda9b 100644
--- a/frontend/src/react/components/DataExportButton.tsx
+++ b/frontend/src/react/components/DataExportButton.tsx
@@ -75,7 +75,7 @@ interface DataExportButtonProps {
}
const SIZE_TO_BUTTON: Record<Size, ButtonProps["size"]> = {
- tiny: "icon",
+ tiny: "xs",
sm: "sm",
md: "default",
lg: "lg",
diff --git a/frontend/src/react/components/ExprEditor.tsx b/frontend/src/react/components/ExprEditor.tsx
index b3b04fdd55..1e93a41d7d 100644
--- a/frontend/src/react/components/ExprEditor.tsx
+++ b/frontend/src/react/components/ExprEditor.tsx
@@ -398,7 +398,7 @@ function SearchableSelect({
<div className="p-1 border-b border-control-border">
<SearchInput
autoFocus
- className="h-8"
+ size="sm"
placeholder={t("common.filter-by-name")}
value={search}
onChange={(e) => handleSearchChange(e.target.value)}
@@ -597,7 +597,7 @@ function MultiSearchableSelect({
<div className="p-1 border-b border-control-border">
<SearchInput
autoFocus
- className="h-8"
+ size="sm"
placeholder={t("common.filter-by-name")}
value={search}
onChange={(e) => handleSearchChange(e.target.value)}
@@ -1084,7 +1084,8 @@ function ValueInput({
return (
<Input
type="number"
- className="h-8 max-w-20"
+ size="sm"
+ className="max-w-20"
value={getNumberValue()}
disabled={readonly}
onChange={(e) => setNumberValue(Number(e.target.value))}
@@ -1094,7 +1095,8 @@ function ValueInput({
}
return (
<Input
- className="h-8 min-w-28 text-sm"
+ size="sm"
+ className="min-w-28"
value={getStringValue()}
disabled={readonly}
onChange={(e) => setStringValue(e.target.value)}
@@ -1419,7 +1421,7 @@ function ConditionGroup({
});
}}
>
- <SelectTrigger className="shrink-0 px-2">
+ <SelectTrigger size="sm" className="shrink-0">
<SelectValue>
{(value: string | null) =>
value ? logicalLabel(value) : null
diff --git a/frontend/src/react/components/SchemaEditorLite/Panels/IndexesEditor/IndexesEditor.tsx b/frontend/src/react/components/SchemaEditorLite/Panels/IndexesEditor/IndexesEditor.tsx
index 8e70992bbf..5c6ba9096e 100644
--- a/frontend/src/react/components/SchemaEditorLite/Panels/IndexesEditor/IndexesEditor.tsx
+++ b/frontend/src/react/components/SchemaEditorLite/Panels/IndexesEditor/IndexesEditor.tsx
@@ -113,7 +113,8 @@ export function IndexesEditor({
<Input
value={index.name}
disabled={isReadonly || index.primary}
- className="h-7 border-none bg-transparent shadow-none focus-visible:ring-1"
+ size="sm"
+ className="border-none bg-transparent shadow-none focus-visible:ring-1"
onChange={(e) => {
index.name = e.target.value;
handleIndexChange();
@@ -137,7 +138,8 @@ export function IndexesEditor({
<Input
value={index.comment}
disabled={isReadonly}
- className="h-7 border-none bg-transparent shadow-none focus-visible:ring-1"
+ size="sm"
+ className="border-none bg-transparent shadow-none focus-visible:ring-1"
onChange={(e) => {
index.comment = e.target.value;
handleIndexChange();
diff --git a/frontend/src/react/components/SchemaEditorLite/Panels/PartitionsEditor/PartitionsEditor.tsx b/frontend/src/react/components/SchemaEditorLite/Panels/PartitionsEditor/PartitionsEditor.tsx
index 5ad187407a..85dd6d16b1 100644
--- a/frontend/src/react/components/SchemaEditorLite/Panels/PartitionsEditor/PartitionsEditor.tsx
+++ b/frontend/src/react/components/SchemaEditorLite/Panels/PartitionsEditor/PartitionsEditor.tsx
@@ -149,7 +149,8 @@ export function PartitionsEditor({
<Input
value={partition.name}
disabled={isReadonly || status === "dropped"}
- className="h-7 border-none bg-transparent shadow-none focus-visible:ring-1"
+ size="sm"
+ className="border-none bg-transparent shadow-none focus-visible:ring-1"
onChange={(e) => {
partition.name = e.target.value;
handlePartitionChange(partition);
@@ -163,7 +164,8 @@ export function PartitionsEditor({
<Input
value={partition.expression}
disabled={isReadonly || !isFirst || status === "dropped"}
- className="h-7 border-none bg-transparent shadow-none focus-visible:ring-1"
+ size="sm"
+ className="border-none bg-transparent shadow-none focus-visible:ring-1"
onChange={(e) => {
partition.expression = e.target.value;
handlePartitionChange(partition);
@@ -174,7 +176,8 @@ export function PartitionsEditor({
<Input
value={partition.value}
disabled={isReadonly || status === "dropped"}
- className="h-7 border-none bg-transparent shadow-none focus-visible:ring-1"
+ size="sm"
+ className="border-none bg-transparent shadow-none focus-visible:ring-1"
onChange={(e) => {
partition.value = e.target.value;
handlePartitionChange(partition);
diff --git a/frontend/src/react/components/header/ProjectSwitchPanel.tsx b/frontend/src/react/components/header/ProjectSwitchPanel.tsx
index a12ad90f13..d9dcf46b39 100644
--- a/frontend/src/react/components/header/ProjectSwitchPanel.tsx
+++ b/frontend/src/react/components/header/ProjectSwitchPanel.tsx
@@ -208,7 +208,7 @@ export function ProjectSwitchPanel({
<Button
variant="ghost"
size="sm"
- className="mb-2 mx-3 h-7 w-fit px-0 text-control-light hover:bg-transparent hover:text-control"
+ className="mb-2 mx-3 w-fit px-0 text-control-light hover:bg-transparent hover:text-control"
onClick={handleGotoWorkspace}
>
<ChevronLeft className="h-4 w-4 opacity-80" />
@@ -243,7 +243,6 @@ export function ProjectSwitchPanel({
size="sm"
variant="outline"
aria-label={t("quick-action.new-project")}
- className="h-8 w-8 px-0"
onClick={onRequestCreate}
>
<Plus className="h-4 w-4" />
diff --git a/frontend/src/react/components/sql-editor/SchemaPane/FlatTableList.tsx b/frontend/src/react/components/sql-editor/SchemaPane/FlatTableList.tsx
index 7f64d649bb..1458e9747a 100644
--- a/frontend/src/react/components/sql-editor/SchemaPane/FlatTableList.tsx
+++ b/frontend/src/react/components/sql-editor/SchemaPane/FlatTableList.tsx
@@ -177,7 +177,7 @@ export function FlatTableList({
<Button
type="button"
variant="ghost"
- size="icon"
+ size="xs"
className="size-5"
onClick={(e) => {
e.stopPropagation();
diff --git a/frontend/src/react/components/task-run-log/TaskRunLogViewer.tsx b/frontend/src/react/components/task-run-log/TaskRunLogViewer.tsx
index 84589afc38..455ad8494a 100644
--- a/frontend/src/react/components/task-run-log/TaskRunLogViewer.tsx
+++ b/frontend/src/react/components/task-run-log/TaskRunLogViewer.tsx
@@ -260,7 +260,7 @@ export function TaskRunLogViewer({ taskRunName }: TaskRunLogViewerProps) {
type="button"
variant="ghost"
size="sm"
- className="h-7 gap-x-1 px-2 text-xs text-gray-600 hover:text-gray-900"
+ className="gap-x-1 text-control-light hover:text-control"
onClick={toggleExpandAll}
>
{areAllExpanded ? (
diff --git a/frontend/src/react/components/ui/button.tsx b/frontend/src/react/components/ui/button.tsx
index b8a22a1bc0..cbb43ff74b 100644
--- a/frontend/src/react/components/ui/button.tsx
+++ b/frontend/src/react/components/ui/button.tsx
@@ -17,12 +17,11 @@ const buttonVariants = cva(
},
size: {
// `default` is an alias for `md` — both render identically.
- default: "h-9 px-4 text-sm leading-5",
+ default: "h-9 px-3 text-sm leading-5",
xs: "h-6 px-1.5 text-xs leading-4 gap-1.5",
- sm: "h-8 px-3 text-xs leading-4",
- md: "h-9 px-4 text-sm leading-5",
- lg: "h-10 px-6 text-sm leading-5",
- icon: "h-9 w-9",
+ sm: "h-7 px-2 text-xs leading-4",
+ md: "h-9 px-3 text-sm leading-5",
+ lg: "h-10 px-4 text-sm leading-5",
},
},
defaultVariants: {
diff --git a/frontend/src/react/components/ui/input.tsx b/frontend/src/react/components/ui/input.tsx
index f2e8a6f0be..ee5223e77f 100644
--- a/frontend/src/react/components/ui/input.tsx
+++ b/frontend/src/react/components/ui/input.tsx
@@ -15,9 +15,9 @@ const inputVariants = cva(
variants: {
size: {
xs: "h-6 px-2 text-xs leading-4",
- sm: "h-8 px-3 text-xs leading-4",
+ sm: "h-7 px-2 text-xs leading-4",
md: "h-9 px-3 text-sm leading-5",
- lg: "h-10 px-3 text-sm leading-5",
+ lg: "h-10 px-4 text-sm leading-5",
},
},
defaultVariants: {
diff --git a/frontend/src/react/components/ui/number-input.test.tsx b/frontend/src/react/components/ui/number-input.test.tsx
index 1997079402..17438c830b 100644
--- a/frontend/src/react/components/ui/number-input.test.tsx
+++ b/frontend/src/react/components/ui/number-input.test.tsx
@@ -59,7 +59,7 @@ describe("NumberInput", () => {
const wrapper = container.firstElementChild as HTMLElement | null;
const input = container.querySelector("input");
expect(wrapper?.className).toContain("w-60");
- expect(input?.className).toContain("h-8");
+ expect(input?.className).toContain("h-7");
});
test("forwards the disabled prop to the underlying input", () => {
diff --git a/frontend/src/react/components/ui/number-input.tsx b/frontend/src/react/components/ui/number-input.tsx
index 2adcbada74..3acb1a1e87 100644
--- a/frontend/src/react/components/ui/number-input.tsx
+++ b/frontend/src/react/components/ui/number-input.tsx
@@ -17,9 +17,9 @@ const numberInputClasses = cva(
variants: {
size: {
xs: "h-6 px-2 text-xs leading-4",
- sm: "h-8 px-3 text-xs leading-4",
+ sm: "h-7 px-2 text-xs leading-4",
md: "h-9 px-3 text-sm leading-5",
- lg: "h-10 px-3 text-sm leading-5",
+ lg: "h-10 px-4 text-sm leading-5",
},
},
defaultVariants: {
diff --git a/frontend/src/react/components/ui/select.tsx b/frontend/src/react/components/ui/select.tsx
index 6125fd2e87..93353c5b82 100644
--- a/frontend/src/react/components/ui/select.tsx
+++ b/frontend/src/react/components/ui/select.tsx
@@ -19,9 +19,9 @@ const selectTriggerVariants = cva(
variants: {
size: {
xs: "h-6 px-2 text-xs leading-4",
- sm: "h-8 px-3 text-sm leading-5",
+ sm: "h-7 px-2 text-xs leading-4",
md: "h-9 px-3 text-sm leading-5",
- lg: "h-10 px-3 text-sm leading-5",
+ lg: "h-10 px-4 text-sm leading-5",
},
},
defaultVariants: {
diff --git a/frontend/src/react/components/ui/textarea.tsx b/frontend/src/react/components/ui/textarea.tsx
index 9d82a79217..d8c73aaba3 100644
--- a/frontend/src/react/components/ui/textarea.tsx
+++ b/frontend/src/react/components/ui/textarea.tsx
@@ -13,9 +13,9 @@ const textareaVariants = cva(
variants: {
size: {
xs: "px-2 py-1 text-xs leading-4",
- sm: "px-3 py-1.5 text-xs leading-4",
+ sm: "px-2 py-1.5 text-xs leading-4",
md: "px-3 py-2 text-sm leading-5",
- lg: "px-3 py-2 text-sm leading-5",
+ lg: "px-4 py-2 text-sm leading-5",
},
},
defaultVariants: {
diff --git a/frontend/src/react/pages/project/DatabaseChangelogDetailPage.tsx b/frontend/src/react/pages/project/DatabaseChangelogDetailPage.tsx
index dd01249493..8f5efe29e8 100644
--- a/frontend/src/react/pages/project/DatabaseChangelogDetailPage.tsx
+++ b/frontend/src/react/pages/project/DatabaseChangelogDetailPage.tsx
@@ -137,7 +137,7 @@ function CopyButton({ content }: { content: string }) {
return (
<Button
variant="ghost"
- size="icon"
+ size="sm"
aria-label={t("common.copy")}
title={t("common.copy")}
disabled={!content}
diff --git a/frontend/src/react/pages/project/ProjectGitOpsPage.tsx b/frontend/src/react/pages/project/ProjectGitOpsPage.tsx
index a88ae93dd9..8bae90904c 100644
--- a/frontend/src/react/pages/project/ProjectGitOpsPage.tsx
+++ b/frontend/src/react/pages/project/ProjectGitOpsPage.tsx
@@ -725,12 +725,7 @@ function CopyButton({ content }: { content: string }) {
};
return (
- <Button
- variant="ghost"
- size="icon"
- className="h-7 w-7"
- onClick={handleCopy}
- >
+ <Button variant="ghost" size="sm" onClick={handleCopy}>
{copied ? (
<Check className="h-4 w-4 text-success" />
) : (
diff --git a/frontend/src/react/pages/project/ProjectIssueDetailPage.tsx b/frontend/src/react/pages/project/ProjectIssueDetailPage.tsx
index ff15a46bf9..8a533e9a0f 100644
--- a/frontend/src/react/pages/project/ProjectIssueDetailPage.tsx
+++ b/frontend/src/react/pages/project/ProjectIssueDetailPage.tsx
@@ -114,7 +114,7 @@ export function ProjectIssueDetailPage(props: ProjectIssueDetailPageProps) {
<Button
aria-label={t("common.close")}
onClick={() => page.setMobileSidebarOpen(false)}
- size="icon"
+ size="sm"
variant="ghost"
>
<X className="h-4 w-4" />
diff --git a/frontend/src/react/pages/project/ProjectSettingsPage.tsx b/frontend/src/react/pages/project/ProjectSettingsPage.tsx
index e90fca4c54..d77fa96934 100644
--- a/frontend/src/react/pages/project/ProjectSettingsPage.tsx
+++ b/frontend/src/react/pages/project/ProjectSettingsPage.tsx
@@ -756,7 +756,7 @@ export function ProjectSettingsPage() {
{canUpdatePolicies && (
<Button
variant="ghost"
- size="icon"
+ size="sm"
onClick={() => {
setPendingReviewPolicy(undefined);
setEnforceReview(false);
diff --git a/frontend/src/react/pages/project/database-detail/catalog/SensitiveColumnTable.tsx b/frontend/src/react/pages/project/database-detail/catalog/SensitiveColumnTable.tsx
index 84d70ab590..43c3df7f05 100644
--- a/frontend/src/react/pages/project/database-detail/catalog/SensitiveColumnTable.tsx
+++ b/frontend/src/react/pages/project/database-detail/catalog/SensitiveColumnTable.tsx
@@ -282,7 +282,7 @@ export function SensitiveColumnTable({
<Button
type="button"
variant="ghost"
- size="icon"
+ size="sm"
onClick={() => onDelete(item)}
title={t(
"settings.sensitive-data.remove-sensitive-column-tips"
diff --git a/frontend/src/react/pages/project/database-detail/revision/ImportRevisionSheet.tsx b/frontend/src/react/pages/project/database-detail/revision/ImportRevisionSheet.tsx
index 5002cd3cde..22ef08d3e0 100644
--- a/frontend/src/react/pages/project/database-detail/revision/ImportRevisionSheet.tsx
+++ b/frontend/src/react/pages/project/database-detail/revision/ImportRevisionSheet.tsx
@@ -802,7 +802,7 @@ function LocalFileUpload({
</div>
<Button
variant="ghost"
- size="icon"
+ size="sm"
onClick={() =>
onFilesChange(files.filter((_, i) => i !== index))
}
diff --git a/frontend/src/react/pages/project/issue-detail/components/IssueDetailDatabaseExportView.tsx b/frontend/src/react/pages/project/issue-detail/components/IssueDetailDatabaseExportView.tsx
index f18af5b594..3995332dba 100644
--- a/frontend/src/react/pages/project/issue-detail/components/IssueDetailDatabaseExportView.tsx
+++ b/frontend/src/react/pages/project/issue-detail/components/IssueDetailDatabaseExportView.tsx
@@ -348,7 +348,8 @@ function IssueDetailDatabaseExportOptions() {
</span>
<Input
autoComplete="new-password"
- className="h-8 w-auto min-w-48"
+ size="sm"
+ className="w-auto min-w-48"
onChange={(event) => handlePasswordChange(event.target.value)}
placeholder={t("common.password")}
type="password"
@@ -475,7 +476,6 @@ function IssueDetailDatabaseExportTaskActions({ task }: { task: Task }) {
<>
<Button
aria-label={t("common.more")}
- className="px-1"
onClick={() => setMenuOpen((open) => !open)}
size="xs"
variant="ghost"
diff --git a/frontend/src/react/pages/project/issue-detail/components/IssueDetailHeader.tsx b/frontend/src/react/pages/project/issue-detail/components/IssueDetailHeader.tsx
index 888e04d8c0..1fb9a9c6a1 100644
--- a/frontend/src/react/pages/project/issue-detail/components/IssueDetailHeader.tsx
+++ b/frontend/src/react/pages/project/issue-detail/components/IssueDetailHeader.tsx
@@ -55,7 +55,7 @@ export function IssueDetailHeader() {
<Button
aria-label={t("common.open")}
onClick={() => page.setMobileSidebarOpen(true)}
- size="icon"
+ size="sm"
variant="ghost"
>
<Menu className="h-5 w-5" />
diff --git a/frontend/src/react/pages/project/plan-detail/components/PlanDetailChangesBranch.tsx b/frontend/src/react/pages/project/plan-detail/components/PlanDetailChangesBranch.tsx
index c5d245d065..47798f1b8c 100644
--- a/frontend/src/react/pages/project/plan-detail/components/PlanDetailChangesBranch.tsx
+++ b/frontend/src/react/pages/project/plan-detail/components/PlanDetailChangesBranch.tsx
@@ -1144,9 +1144,8 @@ function TargetsSection({
)}
{targets.length > DEFAULT_VISIBLE_TARGETS && (
<Button
- className="h-7 px-2"
onClick={() => setShowAllTargetsDialog(true)}
- size="xs"
+ size="sm"
type="button"
variant="ghost"
>
diff --git a/frontend/src/react/pages/project/plan-detail/components/PlanDetailHeader.tsx b/frontend/src/react/pages/project/plan-detail/components/PlanDetailHeader.tsx
index 883c37e7cf..4132dd0cb1 100644
--- a/frontend/src/react/pages/project/plan-detail/components/PlanDetailHeader.tsx
+++ b/frontend/src/react/pages/project/plan-detail/components/PlanDetailHeader.tsx
@@ -539,7 +539,7 @@ export function PlanDetailHeader() {
{page.sidebarMode === "MOBILE" && (
<Button
onClick={() => page.setMobileSidebarOpen(true)}
- size="icon"
+ size="sm"
variant="ghost"
>
<Menu className="h-5 w-5" />
diff --git a/frontend/src/react/pages/settings/GlobalMaskingPage.tsx b/frontend/src/react/pages/settings/GlobalMaskingPage.tsx
index 83e9211017..a5b626231a 100644
--- a/frontend/src/react/pages/settings/GlobalMaskingPage.tsx
+++ b/frontend/src/react/pages/settings/GlobalMaskingPage.tsx
@@ -215,7 +215,8 @@ function MaskingRuleConfig({
<div className="flex items-center h-9">
{!readonly ? (
<Input
- className="w-64 h-8 text-sm"
+ size="sm"
+ className="w-64"
placeholder={defaultTitle}
value={title}
disabled={disabled}
diff --git a/frontend/src/react/pages/settings/GroupsPage.tsx b/frontend/src/react/pages/settings/GroupsPage.tsx
index 05006d5bae..2cc4ce5f32 100644
--- a/frontend/src/react/pages/settings/GroupsPage.tsx
+++ b/frontend/src/react/pages/settings/GroupsPage.tsx
@@ -375,8 +375,8 @@ function GroupRow({
<Tooltip content={t("common.delete")}>
<Button
variant="ghost"
- size="icon"
- className="h-7 w-7 text-error hover:text-error"
+ size="sm"
+ className="text-error hover:text-error"
onClick={(e) => {
e.stopPropagation();
onDelete();
@@ -835,8 +835,8 @@ function GroupForm({
</Select>
<Button
variant="ghost"
- size="icon"
- className="h-7 w-7 shrink-0 text-error hover:text-error"
+ size="sm"
+ className="shrink-0 text-error hover:text-error"
onClick={() => handleRemoveMember(index)}
disabled={!allowEdit}
>
diff --git a/frontend/src/react/pages/settings/IMPage.tsx b/frontend/src/react/pages/settings/IMPage.tsx
index 026f71c4c9..3790052d42 100644
--- a/frontend/src/react/pages/settings/IMPage.tsx
+++ b/frontend/src/react/pages/settings/IMPage.tsx
@@ -453,7 +453,7 @@ export function IMPage() {
{item.isConfigured && allowEdit && (
<Button
variant="ghost"
- size="icon"
+ size="sm"
className="text-error hover:text-error hover:bg-error/10"
onClick={() => handleDelete(i, item.type)}
>
diff --git a/frontend/src/react/pages/settings/MCPPage.tsx b/frontend/src/react/pages/settings/MCPPage.tsx
index 90142d76da..b7b126bb2d 100644
--- a/frontend/src/react/pages/settings/MCPPage.tsx
+++ b/frontend/src/react/pages/settings/MCPPage.tsx
@@ -213,12 +213,7 @@ function CopyButton({ content }: { content: string }) {
};
return (
- <Button
- variant="ghost"
- size="icon"
- className="h-7 w-7"
- onClick={handleCopy}
- >
+ <Button variant="ghost" size="sm" onClick={handleCopy}>
{copied ? (
<Check className="h-4 w-4 text-success" />
) : (
diff --git a/frontend/src/react/pages/settings/MembersPage.tsx b/frontend/src/react/pages/settings/MembersPage.tsx
index 7b7f3e0875..203c155128 100644
--- a/frontend/src/react/pages/settings/MembersPage.tsx
+++ b/frontend/src/react/pages/settings/MembersPage.tsx
@@ -341,7 +341,7 @@ function MemberTable({
{allowEdit && canEdit(mb) && (
<Button
variant="ghost"
- size="icon"
+ size="sm"
onClick={() => onUpdateBinding(mb)}
>
<Pencil className="h-4 w-4" />
@@ -350,7 +350,7 @@ function MemberTable({
{allowEdit && (
<Button
variant="ghost"
- size="icon"
+ size="sm"
onClick={() => {
if (
window.confirm(
@@ -596,7 +596,7 @@ function MemberTableByRole({
{allowEdit && canEdit(mb) && (
<Button
variant="ghost"
- size="icon"
+ size="sm"
onClick={() => onUpdateBinding(mb)}
>
<Pencil className="h-4 w-4" />
@@ -605,7 +605,7 @@ function MemberTableByRole({
{allowEdit && (
<Button
variant="ghost"
- size="icon"
+ size="sm"
onClick={() => {
if (
window.confirm(
@@ -1396,7 +1396,7 @@ function EditMemberRoleDrawer({
<div className="flex items-center gap-x-1">
<Button
variant="ghost"
- size="icon"
+ size="sm"
title={t("common.edit")}
onClick={() => setShowNestedGrant(true)}
>
@@ -1404,7 +1404,7 @@ function EditMemberRoleDrawer({
</Button>
<Button
variant="ghost"
- size="icon"
+ size="sm"
title={t("common.delete")}
disabled={isRequesting}
onClick={() => handleDeleteRole(binding)}
diff --git a/frontend/src/react/pages/settings/RolesPage.tsx b/frontend/src/react/pages/settings/RolesPage.tsx
index a6de8f8d2f..e9e26b5143 100644
--- a/frontend/src/react/pages/settings/RolesPage.tsx
+++ b/frontend/src/react/pages/settings/RolesPage.tsx
@@ -841,8 +841,8 @@ export function RolesPage() {
{canDelete && (
<Button
variant="ghost"
- size="icon"
- className="h-7 w-7 text-error hover:text-error"
+ size="sm"
+ className="text-error hover:text-error"
onClick={() => handleDeleteRole(role)}
>
<Trash2 className="h-4 w-4" />
@@ -850,8 +850,7 @@ export function RolesPage() {
)}
<Button
variant="ghost"
- size="icon"
- className="h-7 w-7"
+ size="sm"
onClick={() => editRole(role)}
>
<Pencil className="h-4 w-4" />
diff --git a/frontend/src/react/pages/settings/SQLReviewPage.tsx b/frontend/src/react/pages/settings/SQLReviewPage.tsx
index 7c212e61c9..9ca525370a 100644
--- a/frontend/src/react/pages/settings/SQLReviewPage.tsx
+++ b/frontend/src/react/pages/settings/SQLReviewPage.tsx
@@ -158,8 +158,8 @@ function PolicyTable({
<Tooltip content={t("common.delete")}>
<Button
variant="ghost"
- size="icon"
- className="h-7 w-7 text-error hover:text-error"
+ size="sm"
+ className="text-error hover:text-error"
onClick={() => setConfirmingDelete(policy.id)}
>
<Trash2 className="w-4 h-4" />
@@ -175,8 +175,7 @@ function PolicyTable({
>
<Button
variant="ghost"
- size="icon"
- className="h-7 w-7"
+ size="sm"
onClick={() => navigateToDetail(policy)}
>
<Pencil className="w-4 h-4" />
diff --git a/frontend/src/react/pages/settings/SemanticTypesPage.tsx b/frontend/src/react/pages/settings/SemanticTypesPage.tsx
index 588dfb2bc7..843867dab6 100644
--- a/frontend/src/react/pages/settings/SemanticTypesPage.tsx
+++ b/frontend/src/react/pages/settings/SemanticTypesPage.tsx
@@ -1138,7 +1138,7 @@ function SemanticTypeRow({
{isEditing ? (
<Input
value={row.item.title}
- className="h-8"
+ size="sm"
placeholder={t(
"settings.sensitive-data.semantic-types.table.semantic-type"
)}
@@ -1154,7 +1154,7 @@ function SemanticTypeRow({
{isEditing ? (
<Input
value={row.item.description}
- className="h-8"
+ size="sm"
placeholder={t(
"settings.sensitive-data.semantic-types.table.description"
)}
diff --git a/frontend/src/react/pages/settings/ServiceAccountsPage.tsx b/frontend/src/react/pages/settings/ServiceAccountsPage.tsx
index 16130d7dc8..f3a7401530 100644
--- a/frontend/src/react/pages/settings/ServiceAccountsPage.tsx
+++ b/frontend/src/react/pages/settings/ServiceAccountsPage.tsx
@@ -265,8 +265,7 @@ function ServiceAccountTable({
{user.serviceKey && !copiedKeys.has(user.name) ? (
<Button
variant="outline"
- size="sm"
- className="h-6 text-xs"
+ size="xs"
onClick={(e) => {
e.stopPropagation();
handleCopyKey(user);
@@ -282,8 +281,7 @@ function ServiceAccountTable({
</span>
<Button
variant="destructive"
- size="sm"
- className="h-6 text-xs"
+ size="xs"
onClick={(e) => {
e.stopPropagation();
handleResetKey(user);
@@ -293,8 +291,7 @@ function ServiceAccountTable({
</Button>
<Button
variant="outline"
- size="sm"
- className="h-6 text-xs"
+ size="xs"
onClick={(e) => {
e.stopPropagation();
setResetConfirmUser(undefined);
@@ -306,8 +303,7 @@ function ServiceAccountTable({
) : (
<Button
variant="outline"
- size="sm"
- className="h-6 text-xs"
+ size="xs"
onClick={(e) => {
e.stopPropagation();
setResetConfirmUser(user);
@@ -342,8 +338,8 @@ function ServiceAccountTable({
>
<Button
variant="ghost"
- size="icon"
- className="h-7 w-7 text-error hover:text-error"
+ size="sm"
+ className="text-error hover:text-error"
onClick={(e) => {
e.stopPropagation();
handleDeactivate(user);
@@ -369,8 +365,7 @@ function ServiceAccountTable({
>
<Button
variant="ghost"
- size="icon"
- className="h-7 w-7"
+ size="sm"
onClick={(e) => {
e.stopPropagation();
handleRestore(user);
diff --git a/frontend/src/react/pages/settings/SubscriptionPage.tsx b/frontend/src/react/pages/settings/SubscriptionPage.tsx
index f6b1e035c0..ebb79413b4 100644
--- a/frontend/src/react/pages/settings/SubscriptionPage.tsx
+++ b/frontend/src/react/pages/settings/SubscriptionPage.tsx
@@ -235,7 +235,7 @@ export function SubscriptionPage({
/>
<Button
variant="ghost"
- size="icon"
+ size="sm"
onClick={handleCopy}
title={t("common.copy")}
>
@@ -365,11 +365,7 @@ function InstanceLicenseStats({
<span className="font-mono text-control-light"> / </span>
{totalLicenseCount}
</span>
- <Button
- variant="ghost"
- size="icon"
- onClick={onManageInstanceLicenses}
- >
+ <Button variant="ghost" size="sm" onClick={onManageInstanceLicenses}>
<Pencil className="h-5 w-5" />
</Button>
</div>
diff --git a/frontend/src/react/pages/settings/UsersPage.tsx b/frontend/src/react/pages/settings/UsersPage.tsx
index 4e64aa9732..a2f9c9a4c0 100644
--- a/frontend/src/react/pages/settings/UsersPage.tsx
+++ b/frontend/src/react/pages/settings/UsersPage.tsx
@@ -360,8 +360,8 @@ function UserTable({
>
<Button
variant="ghost"
- size="icon"
- className="h-7 w-7 text-error hover:text-error"
+ size="sm"
+ className="text-error hover:text-error"
onClick={(e) => {
e.stopPropagation();
handleDeactivate(user);
@@ -382,8 +382,7 @@ function UserTable({
>
<Button
variant="ghost"
- size="icon"
- className="h-7 w-7"
+ size="sm"
onClick={(e) => {
e.stopPropagation();
handleRestore(user);
diff --git a/frontend/src/react/pages/settings/WorkloadIdentitiesPage.tsx b/frontend/src/react/pages/settings/WorkloadIdentitiesPage.tsx
index af24071911..d37782da54 100644
--- a/frontend/src/react/pages/settings/WorkloadIdentitiesPage.tsx
+++ b/frontend/src/react/pages/settings/WorkloadIdentitiesPage.tsx
@@ -192,8 +192,8 @@ function WorkloadIdentityTable({
>
<Button
variant="ghost"
- size="icon"
- className="h-7 w-7 text-error hover:text-error"
+ size="sm"
+ className="text-error hover:text-error"
onClick={(e) => {
e.stopPropagation();
handleDeactivate(user);
@@ -211,8 +211,7 @@ function WorkloadIdentityTable({
>
<Button
variant="ghost"
- size="icon"
- className="h-7 w-7"
+ size="sm"
onClick={(e) => {
e.stopPropagation();
handleRestore(user);
diff --git a/frontend/src/react/plugins/agent/components/AgentWindow.tsx b/frontend/src/react/plugins/agent/components/AgentWindow.tsx
index 91809153ae..d5ccb6d7cb 100644
--- a/frontend/src/react/plugins/agent/components/AgentWindow.tsx
+++ b/frontend/src/react/plugins/agent/components/AgentWindow.tsx
@@ -973,8 +973,8 @@ export function AgentWindow() {
<AgentTooltip content={t("agent.new-chat")}>
<Button
variant="outline"
- size="icon"
- className="size-7 text-control-light"
+ size="sm"
+ className="text-control-light"
aria-label={t("agent.new-chat")}
disabled={isChatCreationDisabled}
onClick={createChat}
@@ -1222,8 +1222,8 @@ function ConfirmDialog({
triggerVariant === "icon" ? (
<Button
variant="ghost"
- size="icon"
- className="size-6 text-control-light hover:bg-background"
+ size="xs"
+ className="text-control-light hover:bg-background"
aria-label={triggerLabel}
onClick={(event) => event.stopPropagation()}
{...triggerProps}
@@ -1296,8 +1296,8 @@ function SidebarIconButton({
<AgentTooltip content={tooltip}>
<Button
variant="ghost"
- size="icon"
- className="size-6 text-control-light hover:bg-background"
+ size="xs"
+ className="text-control-light hover:bg-background"
aria-label={ariaLabel}
onClick={(event) => {
event.stopPropagation();