commit a8875bd: [WebUI] Fix symbol score input type
Alexander Moisseev
moiseev at mezonplus.ru
Wed Apr 3 12:35:03 UTC 2019
Author: Alexander Moisseev
Date: 2019-04-03 09:57:29 +0300
URL: https://github.com/rspamd/rspamd/commit/a8875bd228800e51e5fc24e357991ae89d3f9966 (refs/pull/2833/head)
[WebUI] Fix symbol score input type
---
interface/css/rspamd.css | 12 +++++++-----
interface/js/app/symbols.js | 2 +-
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/interface/css/rspamd.css b/interface/css/rspamd.css
index 2c4e40ab8..e0e14bb3a 100644
--- a/interface/css/rspamd.css
+++ b/interface/css/rspamd.css
@@ -63,14 +63,18 @@ textarea {
display:inline;
}
-input[type="number"] {
- width:4em !important;
+input.form-control[type="number"] {
+ width:4em;
padding:2px 0;
text-align:center;
}
input.action-scores {
margin:5px -7em 5px 0;
}
+table#symbolsTable input[type="number"] {
+ width:6em;
+ font-size:11px;
+}
/* history table */
.table-log {
@@ -553,13 +557,11 @@ td.maps-cell {
.scorebar-spam {
background-color: rgba(240, 0, 0, 0.1);
- font-size:11px;
}
-
.scorebar-ham {
background: rgba(100, 230, 80, 0.1);
- font-size:11px;
}
+
/*btn-file for upload file button*/
.btn-file {
position: relative;
diff --git a/interface/js/app/symbols.js b/interface/js/app/symbols.js
index 866478b1b..ed0a67583 100644
--- a/interface/js/app/symbols.js
+++ b/interface/js/app/symbols.js
@@ -87,7 +87,7 @@ define(["jquery", "footable"],
label_class = "scorebar-spam";
}
item.weight = "<input class=\"form-control input-sm mb-disabled " + label_class +
- "\" data-role=\"numerictextbox\" autocomplete=\"off\" \"type=\"number\" class=\"input\" min=\"" +
+ "\" data-role=\"numerictextbox\" autocomplete=\"off\" type=\"number\" class=\"input\" min=\"" +
min + "\" max=\"" +
max + "\" step=\"" + decimalStep(item.weight) +
"\" tabindex=\"1\" value=\"" + Number(item.weight).toFixed(3) +
More information about the Commits
mailing list