Fix: post-box
This commit is contained in:
		@@ -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()
 | 
			
		||||
}
 | 
			
		||||
@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user