[design] improve link item form order

This commit is contained in:
zombieFox
2020-08-04 14:17:35 +01:00
parent 112bf07edc
commit 2e099f8eb8
5 changed files with 17 additions and 17 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "nightTab", "name": "nightTab",
"version": "5.78.0", "version": "5.79.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "nightTab", "name": "nightTab",
"version": "5.78.0", "version": "5.79.0",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.", "description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@ -189,7 +189,7 @@ var link = (function() {
stagedLink.link.color.rgb.b = 0; stagedLink.link.color.rgb.b = 0;
stagedLink.link.color.opacity = state.get.current().link.item.color.opacity; stagedLink.link.color.opacity = state.get.current().link.item.color.opacity;
stagedLink.link.background.show = false; stagedLink.link.background.show = false;
stagedLink.link.background.type = "image"; stagedLink.link.background.type = "video";
stagedLink.link.background.opacity = state.get.current().link.item.background.opacity; stagedLink.link.background.opacity = state.get.current().link.item.background.opacity;
stagedLink.link.background.image.url = ""; stagedLink.link.background.image.url = "";
stagedLink.link.background.video.url = ""; stagedLink.link.background.video.url = "";
@ -2622,18 +2622,6 @@ var link = (function() {
]), ]),
render.form.wrap([ render.form.wrap([
render.form.indent([ render.form.indent([
render.form.wrap([
backgroundImageRadio,
backgroundImageLabel
]),
render.form.wrap([
render.form.indent([
render.form.wrap([
backgroundImageUrlLabel,
backgroundImageUrlInput
])
])
]),
render.form.wrap([ render.form.wrap([
backgroundVideoRadio, backgroundVideoRadio,
backgroundVideoLabel backgroundVideoLabel
@ -2649,6 +2637,18 @@ var link = (function() {
]) ])
]) ])
]), ]),
render.form.wrap([
backgroundImageRadio,
backgroundImageLabel
]),
render.form.wrap([
render.form.indent([
render.form.wrap([
backgroundImageUrlLabel,
backgroundImageUrlInput
])
])
]),
render.form.wrap([ render.form.wrap([
render.form.indent([ render.form.indent([
helper.node("hr"), helper.node("hr"),

View File

@ -1,6 +1,6 @@
var version = (function() { var version = (function() {
var current = "5.78.0"; var current = "5.79.0";
var name = "Jaded Raven"; var name = "Jaded Raven";

View File

@ -2,7 +2,7 @@
"name": "nightTab", "name": "nightTab",
"short_name": "nightTab", "short_name": "nightTab",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.", "description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
"version": "5.78.0", "version": "5.79.0",
"manifest_version": 2, "manifest_version": 2,
"chrome_url_overrides": { "chrome_url_overrides": {
"newtab": "index.html" "newtab": "index.html"