diff --git a/4chan_x.user.js b/4chan_x.user.js
index 46e0292c7..f38c41f10 100644
--- a/4chan_x.user.js
+++ b/4chan_x.user.js
@@ -960,12 +960,11 @@
var arr, checked, description, dialog, hiddenNum, hiddenThreads, html, input, key, li, link, main, obj, ul, _i, _j, _len, _len2, _ref, _ref2, _ref3;
hiddenThreads = $.getValue("hiddenThreads/" + g.BOARD + "/", {});
hiddenNum = Object.keys(g.hiddenReplies).length + Object.keys(hiddenThreads).length;
- html = "
";
- dialog = $.el('div', {
- id: 'options',
- className: 'reply dialog',
- innerHTML: html
- });
+ html = "
";
+ dialog = ui.dialog('options', {
+ top: '25%',
+ left: '25%'
+ }, html);
main = $('#main', dialog);
_ref = config.main;
for (key in _ref) {
@@ -2683,34 +2682,25 @@
#options {\
position: fixed;\
padding: 5px;\
- max-height: 70%;\
- width: 50%;\
- top: 15%;\
- left: 25%;\
- overflow: auto;\
+ min-width: 500px;\
}\
- #floaty {\
- float: left;\
- }\
- #credits {\
+ #options .move, #credits {\
text-align: right;\
}\
#options ul {\
list-style: none;\
padding: 0;\
}\
- #options textarea {\
- height: 200px;\
- width: 100%;\
- resize: none;\
+ #floaty {\
+ float: left;\
}\
- .overlay {\
- position: fixed;\
+ #options textarea {\
+ height: 100px;\
width: 100%;\
- height: 100%;\
- top: 0;\
- left: 0;\
- background-color: rgba(0,0,0,.5);\
+ }\
+ #options #main {\
+ overflow: auto;\
+ height: 450px;\
}\
\
#qr {\
@@ -2796,6 +2786,14 @@
.inlined {\
opacity: .5;\
}\
+ .overlay {\
+ position: fixed;\
+ width: 100%;\
+ height: 100%;\
+ top: 0;\
+ left: 0;\
+ background-color: rgba(0,0,0,.5);\
+ }\
'
};
main.init();
diff --git a/script.coffee b/script.coffee
index f52898507..19adb312a 100644
--- a/script.coffee
+++ b/script.coffee
@@ -722,14 +722,16 @@ options =
hiddenThreads = $.getValue "hiddenThreads/#{g.BOARD}/", {}
hiddenNum = Object.keys(g.hiddenReplies).length + Object.keys(hiddenThreads).length
html = "
-
-
-
support throd |
-
github |
-
uso |
-
donate
+
@@ -758,7 +760,7 @@ options =
"
- dialog = $.el 'div', id: 'options', className: 'reply dialog', innerHTML: html
+ dialog = ui.dialog 'options', top: '25%', left: '25%', html
main = $('#main', dialog)
for key, obj of config.main
ul = $.el 'ul',
@@ -2050,34 +2052,25 @@ main =
#options {
position: fixed;
padding: 5px;
- max-height: 70%;
- width: 50%;
- top: 15%;
- left: 25%;
- overflow: auto;
+ min-width: 500px;
}
- #floaty {
- float: left;
- }
- #credits {
+ #options .move, #credits {
text-align: right;
}
#options ul {
list-style: none;
padding: 0;
}
- #options textarea {
- height: 200px;
- width: 100%;
- resize: none;
+ #floaty {
+ float: left;
}
- .overlay {
- position: fixed;
+ #options textarea {
+ height: 100px;
width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- background-color: rgba(0,0,0,.5);
+ }
+ #options #main {
+ overflow: auto;
+ height: 450px;
}
#qr {
@@ -2163,6 +2156,14 @@ main =
.inlined {
opacity: .5;
}
+ .overlay {
+ position: fixed;
+ width: 100%;
+ height: 100%;
+ top: 0;
+ left: 0;
+ background-color: rgba(0,0,0,.5);
+ }
'
main.init()