Implement comprehensive card layout improvements and testing

- Added operator/owner priority card implementation to enhance visibility on smaller screens.
- Completed adaptive grid system to eliminate white space issues and improve responsiveness across all card layouts.
- Verified card layout fixes through extensive testing, confirming balanced layouts across various screen sizes and content scenarios.
- Conducted investigation into layout inconsistencies, identifying critical issues and recommending immediate fixes.
- Assessed white space issues and confirmed no critical problems in current implementations.
- Documented comprehensive testing plan and results, ensuring all layouts are functioning as intended.
This commit is contained in:
pacnpal
2025-07-02 16:37:23 -04:00
parent 94736acdd5
commit b570cb6848
21 changed files with 2757 additions and 231 deletions

View File

@@ -2169,6 +2169,116 @@ select {
background-color: rgb(31 41 55 / var(--tw-bg-opacity));
}
/* Adaptive Grid System - White Space Solutions */
.grid-adaptive {
display: grid;
gap: 1.5rem;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-adaptive-sm {
display: grid;
gap: 1rem;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
/* Stats Grid - Always Even Layout */
.grid-stats {
display: grid;
gap: 1rem;
/* Default: Force 2+3 layout for small screens */
grid-template-columns: repeat(2, 1fr);
}
/* Enhanced Responsive Grid */
/* Tablet-specific optimizations for 768px breakpoint */
@media (min-width: 768px) and (max-width: 1023px) {
.grid-adaptive-sm {
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
/* Force 2+3 even layout for tablets */
.grid-stats {
grid-template-columns: repeat(2, 1fr);
}
.grid-adaptive {
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
}
/* Content-aware grid adjustments */
@media (min-width: 1024px) and (max-width: 1279px) {
.grid-adaptive {
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid-adaptive-lg {
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}
/* Force 3+2 even layout for intermediate sizes */
.grid-stats {
grid-template-columns: repeat(3, 1fr);
}
}
@media (min-width: 1280px) {
.grid-adaptive {
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.grid-adaptive-lg {
grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}
/* Force 5-column even layout for large screens */
.grid-stats {
grid-template-columns: repeat(5, 1fr);
}
}
/* Priority Card - Operator/Owner Full-Width Responsive Behavior */
.card-stats-priority {
/* Full width by default (small screens) */
grid-column: 1 / -1;
}
/* Medium screens - still full width for emphasis */
@media (min-width: 768px) and (max-width: 1023px) {
.card-stats-priority {
grid-column: 1 / -1;
}
}
/* Large screens - normal grid behavior */
@media (min-width: 1024px) {
.card-stats-priority {
grid-column: auto;
}
}
@media (min-width: 1536px) {
.grid-adaptive {
grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
.grid-adaptive-lg {
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}
}
/* Typography */
/* Turnstile Widget */
@@ -2195,17 +2305,8 @@ select {
/* 16px - replaces p-6 (24px) for 33% reduction */
}
.p-minimal {
padding: 0.75rem;
/* 12px - replaces p-2 (8px) for consistency */
}
/* Consistent Card Heights */
.card-standard {
min-height: 120px;
}
.card-stats {
min-height: 80px;
}
@@ -3232,10 +3333,6 @@ select {
padding: 0.125rem;
}
.p-1 {
padding: 0.25rem;
}
.p-1\.5 {
padding: 0.375rem;
}
@@ -4412,21 +4509,6 @@ select {
line-height: 1.5rem;
}
.sm\:text-lg {
font-size: 1.125rem;
line-height: 1.75rem;
}
.sm\:text-sm {
font-size: 0.875rem;
line-height: 1.25rem;
}
.sm\:text-xl {
font-size: 1.25rem;
line-height: 1.75rem;
}
.sm\:text-xs {
font-size: 0.75rem;
line-height: 1rem;
@@ -4506,11 +4588,6 @@ select {
font-size: 3rem;
line-height: 1;
}
.md\:text-lg {
font-size: 1.125rem;
line-height: 1.75rem;
}
}
@media (min-width: 1024px) {
@@ -4538,14 +4615,6 @@ select {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.lg\:grid-cols-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lg\:grid-cols-6 {
grid-template-columns: repeat(6, minmax(0, 1fr));
}
.lg\:grid-cols-5 {
grid-template-columns: repeat(5, minmax(0, 1fr));
}
@@ -4555,11 +4624,6 @@ select {
padding-right: 2rem;
}
.lg\:text-2xl {
font-size: 1.5rem;
line-height: 2rem;
}
.lg\:text-3xl {
font-size: 1.875rem;
line-height: 2.25rem;
@@ -4574,14 +4638,4 @@ select {
font-size: 3.75rem;
line-height: 1;
}
.lg\:text-base {
font-size: 1rem;
line-height: 1.5rem;
}
.lg\:text-lg {
font-size: 1.125rem;
line-height: 1.75rem;
}
}