Skip to content

Commit

Permalink
ShowConnections: fix tooltip overflow for looong connection names
Browse files Browse the repository at this point in the history
  • Loading branch information
Vendicated committed Jun 9, 2024
1 parent 43ae944 commit 88319e8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/plugins/_core/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export default definePlugin({
// FIXME: remove once change merged to stable
{
find: "Messages.ACTIVITY_SETTINGS",
noWarn: true,
replacement: {
get match() {
switch (Settings.plugins.Settings.settingsLocation) {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/showConnections/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function CompactConnectionComponent({ connection, theme }: { connection: Connect
<Tooltip
text={
<span className="vc-sc-tooltip">
{connection.name}
<span className="vc-sc-connection-name">{connection.name}</span>
{connection.verified && <VerifiedIcon />}
<TooltipIcon height={16} width={16} />
</span>
Expand Down
8 changes: 8 additions & 0 deletions src/plugins/showConnections/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@
gap: 0.25em;
align-items: center;
}

.vc-sc-connection-name {
word-break: break-all;
}

.vc-sc-tooltip svg {
min-width: 16px;
}
7 changes: 0 additions & 7 deletions src/plugins/usrbg/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,6 @@ export default definePlugin({
}
]
},
{
find: "=!1,canUsePremiumCustomization:",
replacement: {
match: /(\i)\.premiumType/,
replace: "$self.patchPremiumType($1)||$&"
}
},
{
find: "BannerLoadingStatus:function",
replacement: {
Expand Down

0 comments on commit 88319e8

Please sign in to comment.