[CRX] Drop chrome_style from manifest.json
MV3 does not support chrome_style in options_ui. Remove it and replace it with the minimal amount of styles that still has some spacing around the individual settings for readability.
This commit is contained in:
parent
bd3d993180
commit
b23829fc60
@ -31,8 +31,7 @@
|
||||
"managed_schema": "preferences_schema.json"
|
||||
},
|
||||
"options_ui": {
|
||||
"page": "options/options.html",
|
||||
"chrome_style": true
|
||||
"page": "options/options.html"
|
||||
},
|
||||
"options_page": "options/options.html",
|
||||
"background": {
|
||||
|
||||
@ -19,13 +19,19 @@ limitations under the License.
|
||||
<meta charset="utf-8">
|
||||
<title>PDF.js viewer options</title>
|
||||
<style>
|
||||
/* TODO: Remove as much custom CSS as possible - crbug.com/446511 */
|
||||
body {
|
||||
min-width: 400px; /* a page at the settings page is at least 400px wide */
|
||||
margin: 14px 17px; /* already added by default in Chrome 40.0.2212.0 */
|
||||
}
|
||||
.settings-row {
|
||||
margin: 0.65em 0;
|
||||
margin: 1em 0;
|
||||
}
|
||||
.checkbox label {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
}
|
||||
.checkbox label input {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
@ -34,8 +40,7 @@ body {
|
||||
<button id="reset-button" type="button">Restore default settings</button>
|
||||
|
||||
<template id="checkbox-template">
|
||||
<!-- Chromium's style: //src/extensions/renderer/resources/extension.css -->
|
||||
<div class="checkbox">
|
||||
<div class="settings-row checkbox">
|
||||
<label>
|
||||
<input type="checkbox">
|
||||
<span></span>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user