Support smaller device sizes

Created on 4 August 2025, 6 days ago

Problem/Motivation

When you view a tour on a mobile device, the min-width: 500px in tour tour.module.css causes the tour tip to be larger than the display. This results in situations where the tour, and possibly access to the site, is unusable.

Steps to reproduce

View a tour using a responsive display size smaller than 500 pixels wide.

Proposed resolution

TBD.

Remaining tasks

TBD.

User interface changes

TBD.

API changes

None.

Data model changes

None.

โœจ Feature request
Status

Active

Version

2.0

Component

User interface

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States joshuami Portland, OR

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @joshuami
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States joshuami Portland, OR

    Ran across this during UAT for an upcoming launch of a new site using tour.

    I don't have an immediate idea for a fix. Removing min-width: 500px results in a usable tour tip on mobile, but it looks unnaturally squished on larger displays. Ideally, we would have minimum widths based on breakpoints. Any thoughts on how many breakpoints to support?

  • @joshuami opened merge request.
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States joshuami Portland, OR

    Here is my take on adding a bit better responsive support to the tour tip elements. At smaller breakpoints, it will never exceed the display width and the button and text sizes are adjusted a bit for better spacing on small devices down to 375 pixels wide.

    This could definitely use a second set of eyes, but I created a patch from the approach that is working pretty well for me.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States joshuami Portland, OR

    One more quick commit to fix the stylelint issues.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Mind providing screenshots?

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States joshuami Portland, OR

    Here are some screenshots that show a before an after. I've applied the patch of these changes to my blog post about the Tour module as wellโ€”if you want to see it in action: https://joshuami.com/blog/2025/tour-module/. The patch slightly alters font sizes as padding per break point for smaller devices.

    Before



    After



Production build 0.71.5 2024