style little code date on file button

This commit is contained in:
ReznoRMichael 2021-07-28 19:20:38 +02:00
parent 61d43a5800
commit 5181ed4194
6 changed files with 29 additions and 4 deletions

View file

@ -6702,6 +6702,11 @@ function GenerateInnerHTML(db) {
_HKCheckCompletion_js__WEBPACK_IMPORTED_MODULE_0__.benchmarkTimes.GenerateInnerHTML.timeEnd = performance.now();
}
/**
* Hides all other tabs, except the one which button was clicked (shows only the chosen tab)
* @param {EventTarget} clickedButton The click target (button clicked)
*/
function PageSwitchTab(clickedButton) {
var sectionList = document.querySelectorAll(".large-section");
@ -7142,7 +7147,7 @@ document.getElementById("save-area-file").addEventListener("change", function (e
var fileDate = FileDateFormat(event.target.files[0]);
if (fileName) {
label.innerHTML = "".concat(SYMBOL_FILE).concat(fileName, " ").concat(fileDate);
label.innerHTML = "".concat(SYMBOL_FILE).concat(fileName, "<div class=\"code-little\">").concat(fileDate, "</div>");
} else {
label.innerHTML = labelInitialText;
}

File diff suppressed because one or more lines are too long

View file

@ -382,6 +382,14 @@ input[type="file"] {
border-color: rgb(61, 228, 61);
}
.code-little {
font-family: 'Consolas', monospace;
font-size: 0.7rem;
text-align: left;
margin: 0 0 0 0.5rem;
color: #fff;
}
.hint {
display: block;
font-style: italic;
@ -433,6 +441,8 @@ input[type="file"] {
.button {
display: inline-flex;
align-content: center;
align-items: center;
width: max-content;
font-size: 1rem;
font-weight: 500;

File diff suppressed because one or more lines are too long

View file

@ -274,6 +274,14 @@ input[type="file"] {
border-color: rgb(61, 228, 61);
}
.code-little {
font-family: 'Consolas', monospace;
font-size: 0.7rem;
text-align: left;
margin: 0 0 0 0.5rem;
color: #fff;
}
.hint {
display: block;
font-style: italic;
@ -325,6 +333,8 @@ input[type="file"] {
.button {
display: inline-flex;
align-content: center;
align-items: center;
width: max-content;
font-size: 1rem;
font-weight: 500;

View file

@ -1079,7 +1079,7 @@ document.getElementById("save-area-file").addEventListener("change", (event) =>
var fileDate = FileDateFormat(event.target.files[0]);
if (fileName) {
label.innerHTML = `${SYMBOL_FILE}${fileName} ${fileDate}`;
label.innerHTML = `${SYMBOL_FILE}${fileName}<div class="code-little">${fileDate}</div>`;
} else {
label.innerHTML = labelInitialText;
}