RoyAalekh commited on
Commit
a022e61
·
1 Parent(s): ba2cf48

Fix mobile visibility for GPS and Map location buttons

Browse files

- Improved responsive design for location buttons on mobile devices
- Made GPS and Map buttons full-width and properly sized for touch interaction
- Enhanced button styling with proper background colors and hover states
- Ensured button text is always visible on mobile (using !important override)
- Added touch-friendly minimum heights (44-48px) for accessibility
- Fixed layout issues that were hiding buttons on small screens
- Better spacing and visual hierarchy for mobile form layout

Files changed (1) hide show
  1. static/index.html +30 -10
static/index.html CHANGED
@@ -528,29 +528,49 @@
528
  justify-content: center;
529
  }
530
 
531
- @media (max-width: 640px) {
532
  .location-buttons {
533
  flex-direction: column;
534
- gap: var(--space-2);
535
- }
536
-
537
- .location-btn-gps {
538
- align-self: flex-start;
539
- width: auto;
540
  }
541
 
 
542
  .location-btn-map {
543
  width: 100%;
 
 
 
 
 
544
  }
545
 
546
- .btn-text {
547
- display: inline;
 
 
 
 
 
 
548
  }
549
  }
550
 
551
  @media (max-width: 480px) {
 
 
 
 
 
 
 
 
 
 
 
 
552
  .btn-text {
553
- display: none;
554
  }
555
  }
556
 
 
528
  justify-content: center;
529
  }
530
 
531
+ @media (max-width: 768px) {
532
  .location-buttons {
533
  flex-direction: column;
534
+ gap: var(--space-3);
535
+ margin-top: var(--space-4);
 
 
 
 
536
  }
537
 
538
+ .location-btn-gps,
539
  .location-btn-map {
540
  width: 100%;
541
+ justify-content: center;
542
+ min-height: 48px;
543
+ font-size: 0.875rem;
544
+ font-weight: 500;
545
+ padding: var(--space-3) var(--space-4);
546
  }
547
 
548
+ .location-btn-gps {
549
+ background: var(--primary-500);
550
+ color: white;
551
+ border: none;
552
+ }
553
+
554
+ .location-btn-gps:hover {
555
+ background: var(--primary-600);
556
  }
557
  }
558
 
559
  @media (max-width: 480px) {
560
+ .location-buttons {
561
+ gap: var(--space-2);
562
+ }
563
+
564
+ .location-btn-gps,
565
+ .location-btn-map {
566
+ min-height: 44px;
567
+ font-size: 0.8125rem;
568
+ padding: var(--space-2) var(--space-3);
569
+ }
570
+
571
+ /* Ensure button text is always visible on mobile */
572
  .btn-text {
573
+ display: inline !important;
574
  }
575
  }
576