Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShowConnections: Cap max number of connections displayed #3156

Open
wants to merge 19 commits into
base: dev
Choose a base branch
from

Conversation

sadan4
Copy link
Contributor

@sadan4 sadan4 commented Jan 20, 2025

No description provided.

@@ -57,6 +58,11 @@ const settings = definePluginSettings({
{ label: "Cozy", value: Spacing.COZY }, // US Spelling :/
{ label: "Roomy", value: Spacing.ROOMY }
]
},
maxNumberOfConnections: {
type: OptionType.NUMBER,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slider would be better. just do 5-50

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a slider doesn't work due to the fact that the size of the icons is customizable, leading to a multiple of seven -1 not always being the ideal number for an even row

src/plugins/showConnections/index.tsx Outdated Show resolved Hide resolved
src/plugins/showConnections/index.tsx Outdated Show resolved Hide resolved
src/plugins/showConnections/index.tsx Outdated Show resolved Hide resolved
src/plugins/showConnections/index.tsx Outdated Show resolved Hide resolved
Comment on lines -104 to +98
const profile = UserProfileStore.getUserProfile(id);
const profile: Partial<UserProfile> = UserProfileStore.getUserProfile(id) ?? {};
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what the point of this is in the first place, so not sure if this is the best/correct fix

@sadan4 sadan4 requested a review from Vendicated January 28, 2025 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants