GUI updates

This commit is contained in:
MathMan05 2025-03-16 15:54:26 -05:00
parent 11d2a8cb32
commit 62720d4904
4 changed files with 34 additions and 13 deletions

View file

@ -806,7 +806,7 @@ class Localuser {
member.bind(username); member.bind(username);
member.user.bind(memberdiv, member.guild, false); member.user.bind(memberdiv, member.guild, false);
memberdiv.append(pfp, username); memberdiv.append(pfp, username);
memberdiv.classList.add("flexltr", "liststyle"); memberdiv.classList.add("flexltr", "liststyle", "memberListStyle");
membershtml.append(memberdiv); membershtml.append(memberdiv);
} }
category.append(membershtml); category.append(membershtml);

View file

@ -81,11 +81,18 @@ h2:empty {
font-size: 1.5rem; font-size: 1.5rem;
font-weight: bold; font-weight: bold;
} }
.cunread {
.ellipsis {
font-weight: bold;
color: var(--primary-text);
}
}
.ellipsis { .ellipsis {
display: -webkit-box; display: -webkit-box;
word-break: break-all; word-break: break-all;
overflow: hidden; overflow: hidden;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
line-clamp: 1;
-webkit-line-clamp: 1; -webkit-line-clamp: 1;
} }
a, a,
@ -635,7 +642,7 @@ span.instanceStatus {
#sentdms .pfp { #sentdms .pfp {
height: 48px; height: 48px;
width: 48px; width: 48px;
margin-bottom: 6px; margin-bottom: 8px;
border-radius: 50%; border-radius: 50%;
overflow: hidden; overflow: hidden;
display: flex; display: flex;
@ -761,6 +768,7 @@ span.instanceStatus {
margin: 0 6px; margin: 0 6px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin-bottom: 2px;
} }
.channelbutton { .channelbutton {
height: 2em; height: 2em;
@ -791,10 +799,10 @@ span.instanceStatus {
.cunread:after { .cunread:after {
content: ""; content: "";
position: absolute; position: absolute;
top: calc(50% - 4px); top: calc(50% - 8px);
left: -10px; left: -10px;
height: 8px; height: 16px;
width: 8px; width: 7px;
background: var(--primary-text); background: var(--primary-text);
border-radius: 50%; border-radius: 50%;
} }
@ -859,6 +867,13 @@ span.instanceStatus {
gap: 8px; gap: 8px;
cursor: pointer; cursor: pointer;
flex-shrink: 0; flex-shrink: 0;
margin-bottom: 4px;
}
.memberListStyle {
span {
font-size: 0.9rem;
margin-left: 4px;
}
} }
.liststyle .statusDiv { .liststyle .statusDiv {
right: -1px; right: -1px;
@ -1522,7 +1537,7 @@ img.bigembedimg {
} }
.memberList h3 { .memberList h3 {
margin: 0 8px 4px 8px; margin: 0 8px 4px 8px;
font-size: 1rem; font-size: 0.9rem;
} }
.memberList .liststyle:hover { .memberList .liststyle:hover {
background: var(--sidebar-hover); background: var(--sidebar-hover);

View file

@ -10,25 +10,20 @@
/* Themes. See themes.txt */ /* Themes. See themes.txt */
.Dark-theme { .Dark-theme {
color-scheme: dark; color-scheme: dark;
--primary-bg: #303339; --primary-bg: #303339;
--primary-hover: #272b31; --primary-hover: #272b31;
--primary-text: #dfdfdf; --primary-text: #dfdfdf;
--primary-text-soft: #adb8b9; --primary-text-soft: #adb8b9;
--secondary-bg: #16191b; --secondary-bg: #16191b;
--secondary-hover: #252b2c; --secondary-hover: #252b2c;
--servers-bg: #191c1d;
--servers-bg: #141718; --channels-bg: #2a2d33;
--channels-bg: #25282b;
--channel-selected: #3c4046; --channel-selected: #3c4046;
--typebox-bg: #3a3e45; --typebox-bg: #3a3e45;
--button-bg: #4e5457; --button-bg: #4e5457;
--button-hover: #6b7174; --button-hover: #6b7174;
--spoiler-bg: #000000; --spoiler-bg: #000000;
--link: #5ca9ed; --link: #5ca9ed;
--primary-text-prominent: #efefef; --primary-text-prominent: #efefef;
--dock-bg: #1b1e20; --dock-bg: #1b1e20;
--card-bg: #000000; --card-bg: #000000;

View file

@ -501,6 +501,7 @@ export async function getapiurls(str: string): Promise<
const temp = new URL(str); const temp = new URL(str);
temp.port = ""; temp.port = "";
const newOrgin = temp.host; const newOrgin = temp.host;
const protical = temp.protocol;
const tempurls = { const tempurls = {
api: new URL(urls.api), api: new URL(urls.api),
cdn: new URL(urls.cdn), cdn: new URL(urls.cdn),
@ -509,10 +510,20 @@ export async function getapiurls(str: string): Promise<
login: new URL(urls.login), login: new URL(urls.login),
}; };
tempurls.api.host = newOrgin; tempurls.api.host = newOrgin;
tempurls.api.protocol = protical;
tempurls.cdn.host = newOrgin; tempurls.cdn.host = newOrgin;
tempurls.api.protocol = protical;
tempurls.gateway.host = newOrgin; tempurls.gateway.host = newOrgin;
tempurls.gateway.protocol = newOrgin === "http:" ? "ws:" : "wss:";
tempurls.wellknown.host = newOrgin; tempurls.wellknown.host = newOrgin;
tempurls.wellknown.protocol = protical;
tempurls.login.host = newOrgin; tempurls.login.host = newOrgin;
tempurls.login.protocol = protical;
try { try {
if (!(await fetch(tempurls.api + "/ping")).ok) { if (!(await fetch(tempurls.api + "/ping")).ok) {
res(false); res(false);