fix minor bugs
This commit is contained in:
parent
65c85a5222
commit
9700ec9cd2
3 changed files with 5 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
/* the profile popout badge container(s) */
|
/* the profile popout badge container(s) */
|
||||||
[class*="biteSize_"] [class*="tags_"] [class*="container_"] {
|
[class*="profile_"] [class*="tags_"] [class*="container_"] {
|
||||||
/* Discord has padding set to 2px instead of 1px, which causes the 12th badge to wrap to a new line. */
|
/* Discord has gap set to 2px instead of 1px, which causes the 12th badge to wrap to a new line. */
|
||||||
padding: 0 1px;
|
gap: 1px;
|
||||||
}
|
}
|
||||||
|
|
@ -57,7 +57,6 @@ async function loadBadges(noCache = false) {
|
||||||
let intervalId: any;
|
let intervalId: any;
|
||||||
|
|
||||||
function BadgeContextMenu({ badge }: { badge: ProfileBadge & BadgeUserArgs; }) {
|
function BadgeContextMenu({ badge }: { badge: ProfileBadge & BadgeUserArgs; }) {
|
||||||
console.log(badge);
|
|
||||||
return (
|
return (
|
||||||
<Menu.Menu
|
<Menu.Menu
|
||||||
navId="vc-badge-context"
|
navId="vc-badge-context"
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ import { useTimer } from "@utils/react";
|
||||||
import definePlugin, { OptionType } from "@utils/types";
|
import definePlugin, { OptionType } from "@utils/types";
|
||||||
import { React } from "@webpack/common";
|
import { React } from "@webpack/common";
|
||||||
|
|
||||||
import alignedChatInputFix from "./alignedChatInputFix.css";
|
import alignedChatInputFix from "./alignedChatInputFix.css?managed";
|
||||||
|
|
||||||
function formatDuration(ms: number) {
|
function formatDuration(ms: number) {
|
||||||
// here be dragons (moment fucking sucks)
|
// here be dragons (moment fucking sucks)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue