瀏覽代碼

Fix width of inputs. Make view inputs numeric

tags/v0.0.1
Fen Dweller 5 年之前
父節點
當前提交
dfba32e5aa
共有 2 個檔案被更改,包括 5 行新增0 行删除
  1. +3
    -0
      macrovision.css
  2. +2
    -0
      macrovision.js

+ 3
- 0
macrovision.css 查看文件

@@ -148,16 +148,19 @@ body {

.options-row .options-field-numeric {
flex: 2;
width: 100%;
font-size: 150%;
}

.options-row .options-field-text {
flex: 1;
width: 100%;
font-size: 150%;
}

.options-row .options-field-unit {
flex: 1;
width: 100%;
font-size: 150%;
}



+ 2
- 0
macrovision.js 查看文件

@@ -403,6 +403,8 @@ function configViewOptions(entity, view) {
const input = document.createElement("input");
input.classList.add("options-field-numeric");
input.id = "options-view-" + key + "-input";
input.setAttribute("type", "number");
input.setAttribute("min", 1);

input.value = entity.views[view][key].value;



Loading…
取消
儲存