Skip to content

Commit 3b65888

Browse files
committed
Maximize mobile bingo board space - reduce all padding and optimize text display
1 parent 0671561 commit 3b65888

1 file changed

Lines changed: 34 additions & 24 deletions

File tree

christmas-bingo/edit.html

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -483,25 +483,29 @@
483483
}
484484

485485
.header {
486-
padding: 20px;
487-
margin-bottom: 15px;
486+
padding: 15px;
487+
margin-bottom: 10px;
488488
border-radius: 0;
489489
}
490490

491491
.content {
492-
padding: 10px;
492+
padding: 5px;
493493
border-radius: 0;
494494
}
495495

496496
.bingo-board {
497-
gap: 4px;
497+
gap: 3px;
498498
}
499499

500500
.bingo-square {
501-
aspect-ratio: 1; /* Keep squares square on mobile */
502-
padding: 8px;
503-
font-size: 0.75em;
501+
aspect-ratio: 1;
502+
padding: 6px;
503+
font-size: 0.7em;
504504
border-width: 2px;
505+
overflow: hidden;
506+
display: flex;
507+
flex-direction: column;
508+
justify-content: center;
505509
}
506510

507511
.bingo-square:active {
@@ -510,18 +514,23 @@
510514
}
511515

512516
.square-content {
513-
font-size: 0.7em;
514-
line-height: 1.3;
517+
font-size: 0.75em;
518+
line-height: 1.2;
519+
overflow: hidden;
520+
text-overflow: ellipsis;
521+
display: -webkit-box;
522+
-webkit-line-clamp: 5;
523+
-webkit-box-orient: vertical;
515524
}
516525

517526
.square-number {
518-
font-size: 0.65em;
519-
padding: 2px 5px;
527+
font-size: 0.6em;
528+
padding: 1px 3px;
520529
}
521530

522531
.challenge-badge {
523-
font-size: 0.55em;
524-
padding: 2px 5px;
532+
font-size: 0.5em;
533+
padding: 1px 3px;
525534
}
526535

527536
.modal-overlay {
@@ -583,36 +592,37 @@
583592
/* Even smaller screens */
584593
@media (max-width: 480px) {
585594
.content {
586-
padding: 8px;
595+
padding: 3px;
587596
}
588597

589598
.bingo-board {
590-
gap: 3px;
599+
gap: 2px;
591600
}
592601

593602
.bingo-square {
594-
aspect-ratio: 1; /* Keep squares square */
595-
padding: 6px;
596-
font-size: 0.68em;
603+
aspect-ratio: 1;
604+
padding: 4px;
605+
font-size: 0.65em;
597606
}
598607

599608
.square-content {
600-
font-size: 0.65em;
601-
line-height: 1.25;
609+
font-size: 0.7em;
610+
line-height: 1.15;
611+
-webkit-line-clamp: 4;
602612
}
603613

604614
.square-number {
605-
font-size: 0.6em;
606-
padding: 1px 4px;
615+
font-size: 0.55em;
616+
padding: 1px 2px;
607617
}
608618

609619
.challenge-badge {
610-
font-size: 0.5em;
620+
font-size: 0.45em;
611621
}
612622

613623
.bingo-square.completed::before,
614624
.bingo-square.pending::before {
615-
font-size: 4em; /* Reduced from 5em to fit better */
625+
font-size: 3.5em;
616626
}
617627
}
618628
</style>

0 commit comments

Comments
 (0)