add CSS to round corners

This commit is contained in:
joe 2023-07-30 11:56:17 +09:00
parent 844d9c86a4
commit 11226ff7d6

View File

@ -7750,16 +7750,26 @@ $(document).ready(function () {
setTimeout(openMessageDelete, animation_duration); setTimeout(openMessageDelete, animation_duration);
} }
else if (id == "option_settings") { else if (id === "option_settings") {
//var checkBox = document.getElementById("waifuMode"); //var checkBox = document.getElementById("waifuMode");
var topBar = document.getElementById("top-bar"); var topBar = document.getElementById("top-bar");
var topSettingsHolder = document.getElementById("top-settings-holder"); var topSettingsHolder = document.getElementById("top-settings-holder");
var divchat = document.getElementById("chat");
//if (checkBox.checked) { //if (checkBox.checked) {
if (topBar.style.display === "none") { if (topBar.style.display === "none") {
topBar.style.display = ""; // or "inline-block" if that's the original display value topBar.style.display = ""; // or "inline-block" if that's the original display value
topSettingsHolder.style.display = ""; // or "inline-block" if that's the original display value topSettingsHolder.style.display = ""; // or "inline-block" if that's the original display value
divchat.style.borderRadius = "";
divchat.style.backgroundColor = "";
divchat.style.padding = "";
} else { } else {
divchat.style.borderRadius = "10px"; // Adjust the value to control the roundness of the corners
divchat.style.backgroundColor = "#f0f0f0"; // Set the background color to your preference
divchat.style.padding = "10px"; // Add some padding to give it some space inside
topBar.style.display = "none"; topBar.style.display = "none";
topSettingsHolder.style.display = "none"; topSettingsHolder.style.display = "none";
} }