Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Custom Devices in the Preview #67753

Closed
abder opened this issue Dec 9, 2024 · 1 comment
Closed

Add Support for Custom Devices in the Preview #67753

abder opened this issue Dec 9, 2024 · 1 comment
Labels
[Feature] Extensibility The ability to extend blocks or the editing experience [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Enhancement A suggestion for improvement.

Comments

@abder
Copy link
Contributor

abder commented Dec 9, 2024

Description:

Currently, the Gutenberg editor provides built-in device previews for Desktop, Mobile, and Tablet. While these are useful, many developers and designers require additional custom devices to reflect specific breakpoints or scenarios. For example, devices like Laptop, MobileLandscape, or even specific resolutions (e.g., 1440px for large desktops) are commonly used in responsive design workflows.

Proposed Solution:
Introduce the ability to add custom devices with their associated breakpoints. A custom device should be defined by:

Alias: A unique identifier for the device (e.g., laptop or mobileLandscape).
Label: A user-friendly name displayed in the device preview menu (e.g., "Laptop" or "Mobile Landscape").
Icon: A visual representation in the device preview menu.
Style Object: Defines the styles and breakpoints for the editor canvas when the device is active.

Image

@abder abder added the [Type] Enhancement A suggestion for improvement. label Dec 9, 2024
@Mamaduka Mamaduka added [Feature] Extensibility The ability to extend blocks or the editing experience [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed labels Dec 9, 2024
@Mamaduka
Copy link
Member

Mamaduka commented Dec 9, 2024

This is a duplicate of #65005.

@Mamaduka Mamaduka closed this as not planned Won't fix, can't repro, duplicate, stale Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Extensibility The ability to extend blocks or the editing experience [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants