Skip to content

Commit eef92cc

Browse files
authored
Merge pull request #148 from daithihearn/daithihearn-styling
Layout and styling improvements
2 parents 3371a33 + 3e397b6 commit eef92cc

File tree

5 files changed

+5
-43
lines changed

5 files changed

+5
-43
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "frontend",
3-
"version": "5.5.2",
3+
"version": "5.5.3",
44
"description": "React frontend for the Cards 110",
55
"author": "Daithi Hearn",
66
"license": "MIT",

public/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"short_name": "Cards 110",
33
"name": "Cards 110",
4-
"version": "5.5.2",
4+
"version": "5.5.3",
55
"icons": [
66
{
77
"src": "./assets/favicon.png",

src/components/Game/GameWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ const GameWrapper = () => {
2626
<Card className="p-6 gameContainer" inverse>
2727
<PlayersAndCards />
2828

29-
{!iamSpectator ? <MyCards /> : null}
3029
{!iamSpectator && isCalling ? <Calling /> : null}
3130
{!iamSpectator && isBuying ? <Buying /> : null}
3231
{!iamSpectator ? <SelectSuit /> : null}
32+
{!iamSpectator ? <MyCards /> : null}
3333
</Card>
3434
</CardGroup>
3535
)

src/pages/Home/_home.scss

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
.game_wrap {
2121
min-width: 650px;
22+
max-width: 800px;
2223
overflow: overlay;
2324
margin-left: auto;
2425
margin-right: auto;
@@ -257,7 +258,6 @@
257258
}
258259
@media screen and (min-width: 800px) {
259260
.game_wrap {
260-
min-width: 0;
261261
max-width: 790px;
262262
}
263263
.rwd-table tr:hover:not(:first-child) {
@@ -311,21 +311,12 @@
311311
}
312312
}
313313

314-
.game_wrap {
315-
min-width: 1000px;
316-
max-width: 1300px;
317-
}
318-
319314
.diplay_image_size {
320315
max-width: 1100px;
321316
max-height: 1024px;
322317
}
323318

324319
@media only screen and (max-width: 1324px) {
325-
.game_wrap {
326-
min-width: 1100px;
327-
max-width: 1300px;
328-
}
329320

330321
.diplay_image_size {
331322
max-width: 1100px;
@@ -334,10 +325,6 @@
334325
}
335326

336327
@media only screen and (max-width: 1224px) {
337-
.game_wrap {
338-
min-width: 900px;
339-
max-width: 1100px;
340-
}
341328

342329
.diplay_image_size {
343330
max-width: 1020px;
@@ -346,10 +333,6 @@
346333
}
347334

348335
@media only screen and (max-width: 1124px) {
349-
.game_wrap {
350-
min-width: 800px;
351-
max-width: 1000px;
352-
}
353336

354337
.diplay_image_size {
355338
max-width: 920px;
@@ -358,10 +341,6 @@
358341
}
359342

360343
@media only screen and (max-width: 1024px) {
361-
.game_wrap {
362-
min-width: 700px;
363-
max-width: 900px;
364-
}
365344

366345
.diplay_image_size {
367346
max-width: 800px;
@@ -371,10 +350,6 @@
371350

372351
// Resposiveness for Mobile view.
373352
@media only screen and (max-width: 925px) {
374-
.game_wrap {
375-
min-width: 700px;
376-
max-width: 900px;
377-
}
378353

379354
.diplay_image_size {
380355
max-width: 850px;
@@ -405,10 +380,6 @@
405380
}
406381

407382
@media only screen and (max-width: 900px) {
408-
.game_wrap {
409-
min-width: 750px;
410-
max-width: 823px;
411-
}
412383

413384
.diplay_image_size {
414385
max-width: 790px;
@@ -417,10 +388,6 @@
417388
}
418389

419390
@media only screen and (max-width: 823px) {
420-
.game_wrap {
421-
min-width: 700px;
422-
max-width: 800px;
423-
}
424391

425392
.diplay_image_size {
426393
max-width: 760px;
@@ -429,10 +396,6 @@
429396
}
430397

431398
@media only screen and (max-width: 812px) {
432-
.game_wrap {
433-
min-width: 0;
434-
max-width: 800px;
435-
}
436399

437400
.diplay_image_size {
438401
max-width: 720px;

src/scss/_custom.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ body {
88
background-color: #2f855a;
99
position: fixed;
1010
width: 100%;
11-
height: 100vh;
11+
height: 100%;
1212
overflow: overlay;
13-
padding-bottom: 100px;
1413

1514
&_mainBody {
1615
width: 100%;

0 commit comments

Comments
 (0)