Skip to content

Commit 4492dad

Browse files
committed
Fixed size of 'make-move' and 'reset-move' buttons
1 parent 6c42dc0 commit 4492dad

2 files changed

Lines changed: 4 additions & 59 deletions

File tree

src/CodeBreaker.Blazor.Client/Components/Playground.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
{
3838
<div class="selectable-game-buttons">
3939
<FluentButton Appearance="Appearance.Stealth" Disabled="PlayButtonDisabled" OnClick="SetMoveAsync">
40-
<FluentIcon Value="new Icons.Filled.Size48.PlayCircle()" />
40+
<FluentIcon Value="new Icons.Filled.Size48.PlayCircle()" Width="100%" />
4141
</FluentButton>
4242
<FluentButton Appearance="Appearance.Stealth" Disabled="ClearButtonDisabled" OnClick="ResetMove">
43-
<FluentIcon Value="new Icons.Filled.Size48.DismissCircle()" />
43+
<FluentIcon Value="new Icons.Filled.Size48.DismissCircle()" Width="100%" />
4444
</FluentButton>
4545
</div>
4646
}

src/CodeBreaker.Blazor.Client/Components/Playground.razor.css

Lines changed: 2 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -32,34 +32,6 @@
3232
}
3333
}
3434

35-
@media only screen and (max-width: 763px) {
36-
.container {
37-
--game-field-width: 2.25rem;
38-
--game-field-height: 2.25rem;
39-
}
40-
}
41-
42-
@media only screen and (max-height: 900px) {
43-
.container {
44-
--game-field-width: 2.25rem;
45-
--game-field-height: 2.25rem;
46-
}
47-
}
48-
49-
@media only screen and (max-width: 599px) and (min-height: 800px) {
50-
.container {
51-
--game-field-width: 2rem;
52-
--game-field-height: 2rem;
53-
}
54-
}
55-
56-
@media only screen and (max-width: 599px) and (max-height: 800px) {
57-
.container {
58-
--game-field-width: 1.5rem;
59-
--game-field-height: 1.5rem;
60-
}
61-
}
62-
6335
.container,
6436
.game-container,
6537
.colors,
@@ -337,33 +309,6 @@
337309

338310

339311

340-
fluent-button::part(button) {
341-
background-color: red;
342-
}
343-
fluent-button::part(.control) {
344-
background-color: red;
345-
}
346-
fluent-button::part(control) {
347-
background-color: red;
348-
}
349-
350-
fluent-button /deep/ button {
351-
background-color: blue;
352-
}
353-
FluentButton::part(button) {
354-
background-color: red;
355-
}
356-
FluentButton::part(button) {
357-
background-color: red;
358-
}
359-
360-
FluentButton::part(.control) {
361-
background-color: red;
362-
}
363-
364-
FluentButton::part(control) {
365-
background-color: red;
366-
}
367-
FluentButton /deep/ button {
368-
background-color: blue;
312+
.selectable-game-buttons ::deep > fluent-button::part(control) {
313+
width: calc(var(--game-field-width) + 7px);
369314
}

0 commit comments

Comments
 (0)