Skip to content

Commit 033bdcd

Browse files
fix(ui): Adjust EmptyCard icon size and tweak SettingsMacros (#452)
1 parent baf85dc commit 033bdcd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ui/src/components/EmptyCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function EmptyCard({
3030
<div className="max-w-[90%] space-y-1.5 text-center md:max-w-[60%]">
3131
<div className="space-y-2">
3232
{IconElm && (
33-
<IconElm className="mx-auto h-6 w-6 text-blue-600 dark:text-blue-400" />
33+
<IconElm className="mx-auto h-5 w-5 text-blue-600 dark:text-blue-600" />
3434
)}
3535
<h4 className="text-base font-bold leading-none text-black dark:text-white">
3636
{headline}

ui/src/routes/devices.$id.settings.macros.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,15 @@ export default function SettingsMacrosRoute() {
168168
<h3 className="truncate text-sm font-semibold text-black dark:text-white">
169169
{macro.name}
170170
</h3>
171-
<p className="ml-4 mt-1 overflow-hidden text-xs text-slate-500 dark:text-slate-400">
171+
<p className="mt-1 ml-4 overflow-hidden text-xs text-slate-500 dark:text-slate-400">
172172
<span className="flex flex-col items-start gap-1">
173173
{macro.steps.map((step, stepIndex) => {
174174
const StepIcon = stepIndex === 0 ? LuMoveRight : LuCornerDownRight;
175175

176176
return (
177177
<span key={stepIndex} className="inline-flex items-center">
178178
<StepIcon className="mr-1 h-3 w-3 shrink-0 text-slate-400 dark:text-slate-500" />
179-
<span className="px-2 py-0.5 rounded-md border border-slate-200/50 dark:border-slate-700/50 bg-slate-50 dark:bg-slate-800">
179+
<span className="rounded-md border border-slate-200/50 bg-slate-50 px-2 py-0.5 dark:border-slate-700/50 dark:bg-slate-800">
180180
{(Array.isArray(step.modifiers) &&
181181
step.modifiers.length > 0) ||
182182
(Array.isArray(step.keys) && step.keys.length > 0) ? (
@@ -338,6 +338,7 @@ export default function SettingsMacrosRoute() {
338338
<EmptyCard
339339
IconElm={LuCommand}
340340
headline="Create Your First Macro"
341+
description="Combine keystrokes into a single action"
341342
BtnElm={
342343
<Button
343344
size="SM"

0 commit comments

Comments
 (0)