Skip to content

Commit f60c1c6

Browse files
committed
feat: Update button styles and layout in MachineAnimation component
1 parent 294803f commit f60c1c6

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/DotNetDevLottery/Components/Random/MachineAnimation.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
<div class="container">
55
<div class="button-row">
6-
<ui-button type="" variant="primary" @onclick="@(() => TargetPersonCount--)">
6+
<ui-button variant="primary" icon-only @onclick="@(() => TargetPersonCount--)">
77
<span slot="icon">-</span>
88
</ui-button>
99
<span>
1010
@TargetPersonCount
1111
</span>
12-
<ui-button variant="primary" @onclick="@(() => TargetPersonCount++)">
12+
<ui-button variant="primary" icon-only @onclick="@(() => TargetPersonCount++)">
1313
<span slot="icon">+</span>
1414
</ui-button>
1515
<ui-button @onclick="OnClickButton" variant="@TriggerButtonVariant(Status == DrawMachineStatus.Pending)"

src/DotNetDevLottery/Components/Random/MachineAnimation.razor.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@
2424
flex: 0 0 auto;
2525
padding: 5px 0;
2626
gap: 1rem;
27-
line-height: 50px;
2827
height: 50px;
2928
display: flex;
3029
justify-content: center;
30+
align-items: center;
3131
box-sizing: border-box;
3232

3333
& ui-button:has(span) {
34+
width: 40px;
35+
min-width: 40px;
3436
padding: 0;
3537
}
3638
}

0 commit comments

Comments
 (0)