From 27fcf0c743542d25de597981931bf0268b42b169 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 24 Aug 2025 10:59:27 +0000 Subject: [PATCH] Fix: Correct mobile icon spacing and enable horizontal scrolling Modified the CSS for `.mobile-icons-bar-content` to ensure icons are properly spaced and scroll horizontally on mobile devices. - Replaced `min-width: 100%` with `min-width: max-content` to allow the container to expand as needed. - Removed `justify-content: space-between` to prevent icons from being squeezed and to allow natural spacing based on the `gap` property. This change addresses the issue where icons appeared squashed on smaller screens. --- app/globals.css | 4 ++-- jules-scratch/verification/verify_icons.py | 27 ++++++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 jules-scratch/verification/verify_icons.py diff --git a/app/globals.css b/app/globals.css index 32dec0fe..34a89add 100644 --- a/app/globals.css +++ b/app/globals.css @@ -121,8 +121,8 @@ display: flex; gap: 20px; padding: 0 10px; - min-width: 100%; - justify-content: space-between; + min-width: max-content; + /* justify-content: space-between; */ } /* diff --git a/jules-scratch/verification/verify_icons.py b/jules-scratch/verification/verify_icons.py new file mode 100644 index 00000000..57e6f167 --- /dev/null +++ b/jules-scratch/verification/verify_icons.py @@ -0,0 +1,27 @@ +from playwright.sync_api import sync_playwright + +def run(): + with sync_playwright() as p: + browser = p.chromium.launch(headless=True) + # Use a mobile viewport + context = browser.new_context(**p.devices['iPhone 11']) + page = context.new_page() + + try: + # Go to the page + page.goto("http://localhost:3000") + + # Wait for the icon bar to be visible + page.wait_for_selector('.mobile-icons-bar', timeout=10000) # 10 seconds + + # Take a screenshot + page.screenshot(path="jules-scratch/verification/verification.png") + + print("Screenshot taken successfully.") + except Exception as e: + print(f"An error occurred: {e}") + finally: + browser.close() + +if __name__ == "__main__": + run()