Skip to content

Commit

Permalink
Badges: fix overflow in Discord's css
Browse files Browse the repository at this point in the history
  • Loading branch information
Vendicated committed Nov 29, 2024
1 parent 11321eb commit 1150a50
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/plugins/_api/badges/fixDiscordBadgePadding.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* the profile popout badge container(s) */
[class*="biteSize_"] [class*="tags_"] [class*="container_"] {
/* Discord has padding set to 2px instead of 1px, which causes the 12th badge to wrap to a new line. */
padding: 0 1px;
}
2 changes: 2 additions & 0 deletions src/plugins/_api/badges/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

import "./fixDiscordBadgePadding.css";

import { _getBadges, BadgePosition, BadgeUserArgs, ProfileBadge } from "@api/Badges";
import DonateButton from "@components/DonateButton";
import ErrorBoundary from "@components/ErrorBoundary";
Expand Down

0 comments on commit 1150a50

Please sign in to comment.