[META] SDDS responsive styles don't fit well within XB previews

Created on 8 September 2024, 10 days ago
Updated 11 September 2024, 7 days ago

Problem/Motivation

I've been testing a bunch of components and they are all showing up too big in XB's preview areas (both desktop and mobile).

This appears to be due to ui/src/features/layout/preview/Preview.tsx and related code (found by alan.cole):

const previewSizes = {
  lg: {
    height: 768,
    width: 1024,
    name: 'Desktop',
  },
  sm: {
    height: 768,
    width: 400,
    name: 'Mobile',
  },
};

Example in XB:

Figma design:

Steps to reproduce

Proposed resolution

Figure out how to update the CSS so the components look okay in smaller preview size.

Remaining tasks

See above.

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States Kristen Pol Santa Cruz, CA, USA

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

Comments & Activities

Production build 0.71.5 2024