Skip to content

change min-width to auto#281

Open
yfdyh000 wants to merge 1 commit intoeight04:masterfrom
yfdyh000:202202-minwidth
Open

change min-width to auto#281
yfdyh000 wants to merge 1 commit intoeight04:masterfrom
yfdyh000:202202-minwidth

Conversation

@yfdyh000
Copy link
Copy Markdown
Contributor

It seems that Edge 99 rejects such a wide options interface. There is no way to distinguish between Edge and Chrome.

body[data-browser=Chrome] {
padding: 0 1em 1em 1em;
min-width: 520px;
min-width: auto;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be better to change it to:

width: 520px;
max-width: 100%;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that both min-width: auto; and max-width: 100%; can be omitted, and still achieve the same results in Chrome and Edge..

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without max-width: 100%, the option page has a fixed width, resulting in horizontal scrollbar in Edge.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the following styles look like they work for me in Edge, without horizontal scrollbar.
body[data-browser=Chrome] { padding: 0 1em 1em 1em; }

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes but we also have to support Chrome and the default width is too small.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants