From 521b99d3604343e724efdfad147cdeac0f3ec93e Mon Sep 17 00:00:00 2001 From: LowMaster <79407666+RealLowMaster@users.noreply.github.com> Date: Mon, 14 Feb 2022 03:22:22 +0330 Subject: [PATCH] Make History Checkboxs Hitbox Bigger --- CSS/browser.css | 9 +++++++++ CSS/main.css | 20 ++++++++++++++------ JS/browser.js | 8 +++++++- index.html | 12 ++++++------ task.txt | 3 ++- 5 files changed, 38 insertions(+), 14 deletions(-) diff --git a/CSS/browser.css b/CSS/browser.css index c1743c6..f9e59b4 100644 --- a/CSS/browser.css +++ b/CSS/browser.css @@ -418,6 +418,15 @@ position: relative; } +#b-h-p-h-c > div > div:last-child > div > div { + height: 100%; + width: 35px; + position: absolute; + top: 0; + left: 0; + cursor: pointer; +} + #b-h-p-h-c > div > div:last-child > div > input { width: 15px; height: 15px; diff --git a/CSS/main.css b/CSS/main.css index 17f10ab..5468030 100644 --- a/CSS/main.css +++ b/CSS/main.css @@ -1173,7 +1173,8 @@ input::-webkit-input-placeholder { user-select: none } /* Download Panel */ #download-panel { - display: block; + display: grid; + grid-template-rows: 40px 11fr; width: 100%; height: calc(100% - var(--topMenuSize)); background-color: var(--obr-con-bgc); @@ -1188,6 +1189,12 @@ input::-webkit-input-placeholder { user-select: none } #download-panel[active] { left: 0 } +#d-p-m { + display: flex; + align-items: center; + position: relative; +} + #d-p-t { display: none; width: 35px; @@ -1216,17 +1223,18 @@ input::-webkit-input-placeholder { user-select: none } width: 30px; height: 30px; color: var(--black-white); - position: sticky; - top: 10px; + position: absolute; right: 10px; - float: right; - left: auto; cursor: pointer; } #d-p-c-btn > svg { width: 100%; height: 100% } #d-p-c-btn:hover { color: #f00 } -#d-p-c { padding: 30px 0 } + +#d-p-c { + padding: 30px 0; + overflow-y: auto; +} #d-p-c > div { display: flex; diff --git a/JS/browser.js b/JS/browser.js index ea8ab82..b71bdb9 100644 --- a/JS/browser.js +++ b/JS/browser.js @@ -3,7 +3,7 @@ const browserPasteMenu = document.getElementById('browser-paste-menu') const bjp = document.getElementById('browser-jump-page-container') const bjp_i = document.getElementById('bjp-i') const bjp_m_p = document.getElementById('bjp-m-p') -let browserHistoryIndex = 0, browserHistoryRowOpElement, br_history_selected_inputs = [], br_history_selected_indexs = [], resizeTabTimer, active_site = null, historyObserver, historyLaodCounter = 0, br_cmenu_info = null +let browserHistoryIndex = 0, browserHistoryRowOpElement, br_history_selected_inputs = [], br_history_selected_indexs = [], resizeTabTimer, active_site = null, historyObserver, historyLaodCounter = 0, br_cmenu_info = null, brh_cb_save = null function openBrowser() { keydownEventIndex = 3 @@ -770,6 +770,9 @@ function loadMoreHistory() { element.setAttribute('h', passHistory[j][1]) element.setAttribute('onclick', 'browserHistorySelect(this)') container.appendChild(element) + element = document.createElement('div') + element.setAttribute('onclick', 'this.parentElement.children[0].click()') + container.appendChild(element) element = document.createElement('img') element.src = 'Image/sites/'+sites[passHistory[j][0][1][3]].name+'-30x30.jpg' container.appendChild(element) @@ -817,6 +820,9 @@ function loadMoreHistory() { element.setAttribute('h', passHistory[j][1]) element.setAttribute('onclick', 'browserHistorySelect(this)') container.appendChild(element) + element = document.createElement('div') + element.setAttribute('onclick', 'this.parentElement.children[0].click()') + container.appendChild(element) element = document.createElement('img') element.src = 'Image/sites/'+sites[passHistory[j][0][1][3]].name+'-30x30.jpg' container.appendChild(element) diff --git a/index.html b/index.html index f0a5d66..71e58cb 100644 --- a/index.html +++ b/index.html @@ -764,14 +764,14 @@

Export Comic

-
- - - -
+
+ + -
+
+
+
diff --git a/task.txt b/task.txt index e43d4e1..e6410d5 100644 --- a/task.txt +++ b/task.txt @@ -102,10 +102,11 @@ Added To Version { Optimize Have Database and its System Merge Collections To Normal Gallery View Change Slider System and Fix Some Bugs - Make Image Stop Loading System Work Better Add Comic Properties Add Download Button To nhentai Related Comics Add More Choose Location Checkup + Make Image Stop Loading System Work Better + Make History Checkboxs Hitbox Bigger } Tasks => {