Skip to content

Commit 77c2d21

Browse files
committed
style: update InboundsCardWidget to use 'teal' color for badges and buttons, and adjust text sizes
1 parent ef47d36 commit 77c2d21

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/widgets/dashboard/inbounds/inbounds-card/inbounds-card.widget.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,25 +66,25 @@ export function InboundsCardWidget(props: IProps) {
6666
<Group justify="space-between" mb="md">
6767
<Group gap="xs">
6868
<PiTag size="1.2rem" />
69-
<Text fw={600} size="lg">
69+
<Text fw={600} size="md">
7070
{inbound.tag}
7171
</Text>
7272
</Group>
7373

7474
<Group gap="xs">
75-
<Badge color={inbound.nodes.enabled > 0 ? 'green' : 'red'} size="lg">
75+
<Badge color={inbound.nodes.enabled > 0 ? 'teal' : 'red'} size="md">
7676
{inbound.type}
7777
</Badge>
78-
<Badge leftSection={<PiDoorOpen size="1.1rem" />} size="lg">
78+
<Badge leftSection={<PiDoorOpen size="1.1rem" />} size="md">
7979
{inbound.port}
8080
</Badge>
8181
{inbound.network && (
82-
<Badge color="grape" leftSection={<PiGlobe size="1.1rem" />} size="lg">
82+
<Badge color="grape" leftSection={<PiGlobe size="1.1rem" />} size="md">
8383
{inbound.network}
8484
</Badge>
8585
)}
8686
{inbound.security && (
87-
<Badge color="gray" leftSection={<PiLockSimple size="1.1rem" />} size="lg">
87+
<Badge color="gray" leftSection={<PiLockSimple size="1.1rem" />} size="md">
8888
{inbound.security}
8989
</Badge>
9090
)}
@@ -103,7 +103,7 @@ export function InboundsCardWidget(props: IProps) {
103103

104104
<Group gap="xs">
105105
<Tooltip label={t('inbounds-card.widget.enabled-nodes')}>
106-
<Badge color="green" size="lg">
106+
<Badge color="teal" size="lg">
107107
<NumberFormatter
108108
thousandSeparator
109109
value={inbound.nodes.enabled}
@@ -164,7 +164,7 @@ export function InboundsCardWidget(props: IProps) {
164164
{t('inbounds-card.widget.remove')}
165165
</Button>
166166
<Button
167-
color="green"
167+
color="teal"
168168
disabled={inbound.nodes.disabled === 0}
169169
leftSection={<PiPlus size="0.9rem" />}
170170
onClick={() => {
@@ -189,7 +189,7 @@ export function InboundsCardWidget(props: IProps) {
189189
confirm: t('inbounds-card.widget.add'),
190190
cancel: 'Cancel'
191191
},
192-
confirmProps: { color: 'green' },
192+
confirmProps: { color: 'teal' },
193193
onConfirm: () => {
194194
addInboundToNodes({
195195
variables: {
@@ -217,7 +217,7 @@ export function InboundsCardWidget(props: IProps) {
217217

218218
<Group gap="xs">
219219
<Tooltip label={t('inbounds-card.widget.enabled-users')}>
220-
<Badge color="green" size="lg">
220+
<Badge color="teal" size="lg">
221221
<NumberFormatter
222222
thousandSeparator
223223
value={inbound.users.enabled}
@@ -278,7 +278,7 @@ export function InboundsCardWidget(props: IProps) {
278278
{t('inbounds-card.widget.remove')}
279279
</Button>
280280
<Button
281-
color="green"
281+
color="teal"
282282
disabled={inbound.users.disabled === 0}
283283
leftSection={<PiPlus size="0.9rem" />}
284284
onClick={() => {
@@ -303,7 +303,7 @@ export function InboundsCardWidget(props: IProps) {
303303
confirm: t('inbounds-card.widget.add'),
304304
cancel: t('inbounds-card.widget.cancel')
305305
},
306-
confirmProps: { color: 'green' },
306+
confirmProps: { color: 'teal' },
307307
onConfirm: () => {
308308
addInboundToUsers({
309309
variables: {

0 commit comments

Comments
 (0)