Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.

Commit aa14796

Browse files
committed
change button size in all button primitives
1 parent 8dfc98e commit aa14796

File tree

46 files changed

+106
-108
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+106
-108
lines changed

packages/client-core/src/admin/adminRoutes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const AdminTopBar = () => {
7171
)}
7272
</Button>
7373
<Tooltip content={tooltip}>
74-
<Button className="pointer-events-auto" size="small" onClick={() => AuthService.logoutUser()}>
74+
<Button className="pointer-events-auto" size="sm" onClick={() => AuthService.logoutUser()}>
7575
{t('admin:components.common.logOut')}
7676
</Button>
7777
</Tooltip>

packages/client-core/src/admin/components/avatar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default function Avatars() {
7171
<div>
7272
<Button
7373
startIcon={<HiPlus />}
74-
size="small"
74+
size="xs"
7575
fullWidth
7676
onClick={() => {
7777
PopoverState.showPopupover(<AddEditAvatarModal />)

packages/client-core/src/admin/components/channel/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default function Channels() {
8080
<Button
8181
startIcon={<HiTrash />}
8282
variant="danger"
83-
size="small"
83+
size="xs"
8484
fullWidth
8585
onClick={() => {
8686
PopoverState.showPopupover(
@@ -104,7 +104,7 @@ export default function Channels() {
104104
<div className="ml-auto">
105105
<Button
106106
startIcon={<HiPlus />}
107-
size="small"
107+
size="xs"
108108
fullWidth
109109
onClick={() => {
110110
PopoverState.showPopupover(<AddEditChannelModal />)

packages/client-core/src/admin/components/instance/InstanceTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default function InstanceTable({ search }: { search: string }) {
8989
PopoverState.showPopupover(<ViewModal instanceId={row.id} />)
9090
}}
9191
startIcon={<HiEye className="place-self-center text-blue-700 dark:text-white" />}
92-
size="small"
92+
size="xs"
9393
>
9494
{t('admin:components.instance.actions.view')}
9595
</Button>

packages/client-core/src/admin/components/instance/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default function Instances() {
7070
/>
7171
<div>
7272
<Button
73-
size="small"
73+
size="xs"
7474
fullWidth
7575
onClick={() => {
7676
PopoverState.showPopupover(<PatchServerModal />)

packages/client-core/src/admin/components/invites/InviteTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export default function InviteTable({
107107
action: (
108108
<div className="flex items-center gap-3">
109109
<Button
110-
size="small"
110+
size="xs"
111111
variant="primary"
112112
onClick={() => PopoverState.showPopupover(<AddEditInviteModal invite={row} />)}
113113
>

packages/client-core/src/admin/components/invites/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default function Invites() {
7777
<div>
7878
<Button
7979
variant="danger"
80-
size="small"
80+
size="xs"
8181
fullWidth
8282
onClick={() => {
8383
PopoverState.showPopupover(<RemoveInviteModal invites={selectedInvites.value as InviteType[]} />)
@@ -90,7 +90,7 @@ export default function Invites() {
9090
<div className="ml-auto">
9191
<Button
9292
startIcon={<HiPlus />}
93-
size="small"
93+
size="xs"
9494
fullWidth
9595
onClick={() => {
9696
PopoverState.showPopupover(<AddEditInviteModal />)

packages/client-core/src/admin/components/locations/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default function Locations() {
7171
<div>
7272
<Button
7373
startIcon={<HiPlus />}
74-
size="small"
74+
size="xs"
7575
fullWidth
7676
onClick={() => {
7777
PopoverState.showPopupover(<AddEditLocationModal />)

packages/client-core/src/admin/components/project/AddEditProjectModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ export default function AddEditProjectModal({
446446
<Button
447447
title={t('admin:components.project.copyDestination')}
448448
variant="outline"
449-
size="small"
449+
size="xs"
450450
className="p-3 [&>*]:m-0"
451451
startIcon={<HiMiniClipboardDocumentList />}
452452
onClick={() => {

packages/client-core/src/admin/components/project/ProjectTable.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export default function ProjectTable(props: { search: string }) {
118118
<div className="flex items-center justify-evenly p-1">
119119
<Button
120120
startIcon={<HiOutlineArrowPath />}
121-
size="small"
121+
size="xs"
122122
className="mr-2 h-min whitespace-pre bg-theme-blue-secondary text-[#214AA6] disabled:opacity-50 dark:text-white"
123123
disabled={project.name === 'default-project'}
124124
onClick={() =>
@@ -131,7 +131,7 @@ export default function ProjectTable(props: { search: string }) {
131131
</Button>
132132
<Button
133133
startIcon={<GrGithub />}
134-
size="small"
134+
size="xs"
135135
className="mr-2 h-min whitespace-pre bg-theme-blue-secondary text-[#214AA6] disabled:opacity-50 dark:text-white"
136136
disabled={!project || !project.repositoryPath || project.name === 'default-project'}
137137
onClick={() => {
@@ -152,7 +152,7 @@ export default function ProjectTable(props: { search: string }) {
152152

153153
<Button
154154
startIcon={<HiOutlineUsers />}
155-
size="small"
155+
size="xs"
156156
className="mr-2 h-min whitespace-pre bg-theme-blue-secondary text-[#214AA6] disabled:opacity-50 dark:text-white"
157157
onClick={() => {
158158
activeProjectId.set(project.id)
@@ -163,7 +163,7 @@ export default function ProjectTable(props: { search: string }) {
163163
</Button>
164164
<Button
165165
startIcon={<HiOutlineCommandLine />}
166-
size="small"
166+
size="xs"
167167
className="mr-2 h-min whitespace-pre bg-theme-blue-secondary text-[#214AA6] disabled:opacity-50 dark:text-white"
168168
disabled={config.client.localBuildOrDev}
169169
onClick={() => {
@@ -181,14 +181,14 @@ export default function ProjectTable(props: { search: string }) {
181181
</Button>
182182
<Button
183183
startIcon={<HiOutlineFolder />}
184-
size="small"
184+
size="xs"
185185
className="mr-2 h-min whitespace-pre bg-theme-blue-secondary text-[#214AA6] disabled:opacity-50 dark:text-white"
186186
>
187187
{t('admin:components.common.view')}
188188
</Button>
189189
<Button
190190
startIcon={<HiOutlineTrash />}
191-
size="small"
191+
size="xs"
192192
className="h-min whitespace-pre bg-theme-blue-secondary text-[#214AA6] disabled:opacity-50 dark:text-white"
193193
disabled={project.name === 'default-project'}
194194
onClick={() => {

0 commit comments

Comments
 (0)