mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-08 14:13:01 -04:00
fix(serverListIndicators): desktop refresh (#215)
Some checks are pending
Test / Test (push) Waiting to run
Some checks are pending
Test / Test (push) Waiting to run
* Fixes For customizationSectionBackground * fix(serverListIndicators): desktop refresh --------- Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
This commit is contained in:
parent
4f35e58a13
commit
f2247a3e2b
2 changed files with 38 additions and 28 deletions
|
@ -74,10 +74,9 @@ function FriendsIndicator() {
|
||||||
</path>
|
</path>
|
||||||
</svg>
|
</svg>
|
||||||
}
|
}
|
||||||
<span id="vc-friendcount-text">{onlineFriendsCount}</span>
|
<span id="vc-friendcount-text">{onlineFriendsCount}
|
||||||
{!!settings.store.useCompact &&
|
{!!settings.store.useCompact && <span id="vc-friendcount-text-compact">Friends</span>}
|
||||||
<span id="vc-friendcount-text-compact">Friends</span>
|
</span>
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -109,10 +108,9 @@ function ServersIndicator() {
|
||||||
</path>
|
</path>
|
||||||
</svg>
|
</svg>
|
||||||
}
|
}
|
||||||
<span id="vc-guildcount-text">{guildCount}</span>
|
<span id="vc-guildcount-text">{guildCount}
|
||||||
{!!settings.store.useCompact &&
|
{!!settings.store.useCompact && <span id="vc-guildcount-text-compact">Servers</span>}
|
||||||
<span id="vc-guildcount-text-compact">Servers</span>
|
</span>
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -155,13 +153,11 @@ export default definePlugin({
|
||||||
text = `${onlineFriendsCount} Friends`;
|
text = `${onlineFriendsCount} Friends`;
|
||||||
break;
|
break;
|
||||||
case IndicatorType.SERVER:
|
case IndicatorType.SERVER:
|
||||||
text = `${onlineFriendsCount} Friends, ${guildCount} Servers`;
|
text = `${guildCount} Servers`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
let cl;
|
const cl = useCompact ? classNameFactory("vc-indicators-compact") : classNameFactory("vc-indicators");
|
||||||
if (useCompact) cl = classNameFactory("vc-indicators-compact");
|
|
||||||
else cl = classNameFactory("vc-indicators");
|
|
||||||
|
|
||||||
return <ErrorBoundary noop>
|
return <ErrorBoundary noop>
|
||||||
<div id={cl("-container")}>
|
<div id={cl("-container")}>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-bottom: 8px;
|
margin-bottom: -1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#vc-indicators-indicator-items {
|
#vc-indicators-indicator-items {
|
||||||
|
@ -12,13 +12,35 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
background-color: var(--background-primary);
|
border-radius: 24%;
|
||||||
height: 48px;
|
height: var(--guildbar-avatar-size);
|
||||||
width: 48px;
|
width: var(--guildbar-avatar-size);
|
||||||
border-radius: 100%;
|
background-color: var(--background-surface-higher);
|
||||||
transition: border-radius 0.15s ease-out, background-color 0.15s ease-out;
|
transition: border-radius 0.15s ease-out, background-color 0.15s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#vc-indicators-indicator-items::before {
|
||||||
|
position: absolute;
|
||||||
|
content: "";
|
||||||
|
display: block;
|
||||||
|
/* stylelint-disable-next-line length-zero-no-unit */
|
||||||
|
width: 0px;
|
||||||
|
/* stylelint-disable-next-line length-zero-no-unit */
|
||||||
|
height: 0px;
|
||||||
|
opacity: 0;
|
||||||
|
border-radius: 0 4px 4px 0;
|
||||||
|
left: -4px;
|
||||||
|
background-color: var(--header-primary);
|
||||||
|
transition: height 0.15s ease-out, width 0.15s ease-out,
|
||||||
|
opacity 0.15s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
#vc-indicators-indicator-items:hover::before {
|
||||||
|
width: 8px;
|
||||||
|
height: 20px;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
#vc-indicators-compact-indicator-items {
|
#vc-indicators-compact-indicator-items {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -27,7 +49,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#vc-indicators-indicator-items:hover {
|
#vc-indicators-indicator-items:hover {
|
||||||
border-radius: 34%;
|
|
||||||
background-color: var(--brand-500);
|
background-color: var(--brand-500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +56,7 @@
|
||||||
#vc-guildcount {
|
#vc-guildcount {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: space-evenly;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -44,13 +65,6 @@
|
||||||
|
|
||||||
#vc-friendcount-icon,
|
#vc-friendcount-icon,
|
||||||
#vc-guildcount-icon {
|
#vc-guildcount-icon {
|
||||||
padding-right: 2px;
|
width: var(--size-12);
|
||||||
width: 14px;
|
height: var(--size-12);
|
||||||
height: 14px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#vc-indicators-compact-container #vc-friendcount-text-compact,
|
|
||||||
#vc-indicators-compact-container #vc-guildcount-text-compact {
|
|
||||||
display: block;
|
|
||||||
padding-left: 4px;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue