codex-team / codex-team/editor.js

Turn off mobile styling or pass custom breakpont💡

Open
#1,771 0 comments 4 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

1. Describe a problem.
Currently, the breakpoints are fixed at 650px. This unfortunately does not work in our project. There does not appear to be a clear way around this breakpoint.

2. Describe the solution you'd like. Mockups are welcome.
Ideally, I would like to be able to pass a custom breakpoint or `mobileStylingDisabled: true` to the initial Editor config. I looked into how to make the custom breakpoint work - unfortunately CSS3 variables cannot do the trick here. As for turning off the styling completely, my initial thought was to break the media queries into their own stylesheet and use JS dynamic import to only import those styles if `!mobileStylingDisabled`. Very open to other ideas though.

3. Are there any alternatives?
Unclear at the moment.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.