Fix: post-box

This commit is contained in:
cutls 2019-10-22 14:34:30 +09:00
parent 4943b3ad20
commit 32c7f52882
2 changed files with 15 additions and 5 deletions

View File

@ -288,10 +288,20 @@ function clear() {
if (localStorage.getItem("mainuse") == "main") {
$("#post-acct-sel").val(localStorage.getItem("main"));
}
$("#emoji").addClass("hide")
$('select').formSelect();
mdCheck()
$("#left-side").show();
$("#default-emoji").show();
$("#unreact").show();
$("#addreact").addClass("hide");
$("#right-side").hide()
$("#right-side").css("width", "300px")
$("#left-side").css("width", "100%")
var width = localStorage.getItem("postbox-width");
if(width){
width = width.replace("px", "") * 1
} else {
width = 300
}
$("#post-box").css("width", width)
mdCheck()
}

View File

@ -57,7 +57,7 @@ input.addEventListener("focus", function () {
if (width) {
width = width.replace("px", "") * 1 + 200
} else {
width = 600
width = 500
}
$("#post-box").css("width", width + "px")
$("#poll").addClass("hide")
@ -161,7 +161,7 @@ input.addEventListener("focus", function () {
if (width) {
width = width.replace("px", "") * 1 + 200
} else {
width = 600
width = 500
}
$("#post-box").css("width", width + "px")
$("#poll").addClass("hide")
@ -186,7 +186,7 @@ input.addEventListener("focus", function () {
if (width) {
width = width.replace("px", "") * 1 + 200
} else {
width = 600
width = 500
}
$("#post-box").css("width", width + "px")
$("#suggest").html(accts);