1 year ago

#319176

test-img

Owen Zhao

How to set width in popup.css of Safari Extension in macOS?

The same width setting worked in iOS. However, in macOS, the width setting is ignore.

:root {
    color-scheme: light dark;
}

body {
    width: 400px;
    padding: 10px;

    font-family: system-ui;
    text-align: center;
}

@media (prefers-color-scheme: dark) {
    /* Dark Mode styles go here. */
}

enter image description here

I want the whole sentence showed in one line. Any idea?

popup

safari-extension

0 Answers

Your Answer

Accepted video resources