Skip to content

Commit d3da426

Browse files
authored
Merge pull request #2723 from jevenski/feedback
Various bug fixes for Beta 2
2 parents feac220 + eb567d0 commit d3da426

78 files changed

Lines changed: 1089 additions & 745 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

css/style.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
-moz-user-select: none;
77
-webkit-user-select: none;
88
}
9-
html, body {border: 0; margin: 0; padding: 0; cursor: default; overflow: hidden; background-color: #F5F5F5; height: 100%;}
9+
html, body {border: 0; padding: 0; cursor: default; overflow: hidden; background-color: #F5F5F5; height: 100%;}
1010
html, body, input,select,button,textarea{font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 11px;}
1111
div, td, label, fieldset, textarea, select, input, button, dialog {
1212
box-sizing: border-box;
@@ -62,7 +62,7 @@ button, input[type=button], input[type=submit], .Button {
6262
border-radius: 3px;
6363
margin: 0.25rem;
6464
padding: 1px 10px;
65-
background: #F0F0F0 url(../images/h.gif) repeat-x center bottom;
65+
background: var(--btn-bg-color) url(../images/h.gif) repeat-x center bottom;
6666
width: 80px;
6767
text-wrap: nowrap;
6868
}
@@ -97,6 +97,8 @@ span {
9797
--menu-highlight-background-color: #cfdeef;
9898

9999
--settings-background-color: #fafafa;
100+
101+
--btn-bg-color: #F0F0F0;
100102
}
101103
category-list.rightalign-labelsize panel-label::part(size) {
102104
margin-left: auto;
@@ -209,7 +211,7 @@ div#t {
209211
z-index: 30;
210212
}
211213
div#t button.navbar-toggler {
212-
background-color: #F0F0F0;
214+
background-color: var(--btn-bg-color);
213215
width: 5rem;
214216
}
215217
div#t a {padding: 3px;}
@@ -233,7 +235,7 @@ div#t .nav-link {
233235
font-weight: bold;
234236
border: 1px solid #A0A0A0;
235237
border-radius: 8px;
236-
background-color: #F0F0F0;
238+
background-color: var(--btn-bg-color);
237239
background-image: none;
238240
margin: 0.15rem;
239241
}
@@ -267,13 +269,12 @@ div#plugins {background: url(../images/plugin.png) 0px center}
267269
cursor: default;
268270
}
269271

270-
Input.TextboxLarge {border: 1px solid #B0B0B0; font-size: 11px; padding: 2px; width: 220px}
271272
#pview_save_view_button { align-self: center; width: 38px; height: 19px; padding: 0px; line-height: 2px; font-size: 19px; }
272273

273274
a {color: #686868;}
274275
#maincont {height: calc(100vh - 36px - 5px - 25px - 5px);}
276+
.offcanvas-header .btn-close {background-color: var(--btn-bg-color);}
275277
#offcanvas-sidepanel {
276-
min-width: 200px;
277278
background-color: #FFFFFF;
278279
}
279280
#side-panel {
@@ -282,7 +283,6 @@ a {color: #686868;}
282283
#list-table {
283284
border: 1px solid #A0A0A0;
284285
background-color: #FFFFFF;
285-
min-height: 300px;
286286
}
287287

288288
.stable-icon {background-image: url(../images/tstatus.png); background-repeat: no-repeat}

index.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="offcanvas-sidepanel" aria-labelledby="offcanvas-sidepanel-label">
127127
<div class="offcanvas-header">
128128
<h4 class="offcanvas-title" id="offcanvas-sidepanel-label"></h4>
129-
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#offcanvas-sidepanel" aria-label="Close"></button>
129+
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#offcanvas-sidepanel" aria-label="Close"></button>
130130
</div>
131131
<div class="p-1 p-md-0 mh-100 offcanvas-body overflow-x-hidden flex-grow-1 flex-shrink-1">
132132
<div id="side-panel" class="w-100 overflow-x-hidden overflow-y-auto">
@@ -146,16 +146,18 @@ <h4 class="offcanvas-title" id="offcanvas-sidepanel-label"></h4>
146146
<slot name="content"></slot>
147147
</template>
148148
<template id="pview-rename-dialog-template">
149-
<div class="content">
150-
<input type="text" onfocus="this.select()"/>
149+
<div class="content row">
150+
<div class="col-12">
151+
<input type="text" onfocus="this.select()"/>
152+
</div>
151153
</div>
152-
<div class="aright buttons-list" style="margin-top: 10px">
154+
<div class="buttons-list">
153155
<button class="Button" value="confirm" uilang>ok</button>
154156
<button class="Button Cancel" uilang>Cancel</button>
155157
</div>
156158
</template>
157159
<category-list id="CatList">
158-
<category-panel id="pview" uilangtext="pnlViews">
160+
<category-panel id="pview" uilangtext="pnlViews" class="d-none d-md-block">
159161
<input slot="decorator" class="Button" type="button" value="+" uilangtitle="SaveCurrentView" id="pview_save_view_button" />
160162
<panel-label id="pview_all" icon="all" uilangtext="All" selected></panel-label>
161163
</category-panel>

js/common.js

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,17 +295,33 @@ var theURLs =
295295

296296
const theOptionsSwitcher = {
297297
current: "st_gl",
298+
items: {},
299+
300+
addHandler: function(id, type, handler) {
301+
if ($type(this.items[id])) {
302+
const existing = this.items[id][type];
303+
if (existing) {
304+
this.items[id][type] = function() {
305+
existing();
306+
handler();
307+
};
308+
} else {
309+
this.items[id][type] = handler;
310+
}
311+
}
312+
return this;
313+
},
298314

299315
run: function(id) {
300316
$('#' + this.current).hide();
301317
$("#mnu_" + this.current).removeClass("focus");
302-
// close directory frames associated with the current option page
303-
if (thePlugins.isInstalled("_getdir")) {
304-
thePlugins.get("_getdir").hideBrowseFrame(this.current);
305-
}
318+
if ($type(this.items[this.current]) && ($type(this.items[this.current].afterHide) === "function"))
319+
this.items[this.current].afterHide();
306320
this.current = id;
307321
$('#' + this.current).show();
308322
$("#mnu_" + this.current).addClass("focus");
323+
if ($type(this.items[this.current]) && ($type(this.items[this.current].afterShow) === "function"))
324+
this.items[this.current].afterShow();
309325
},
310326
};
311327

0 commit comments

Comments
 (0)