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

List with fixed Item Size #292

Merged
merged 2 commits into from
Feb 21, 2025
Merged

Conversation

ruediste
Copy link
Contributor

Currently, the items of the list shape are always scaled to the size of the list. This PR adds the option to switch to a fixed item size.

@@ -9,9 +9,13 @@ import { ConfigurableFactory, DefaultAppearance, Rect2, RenderContext, Shape, Sh
import { CommonTheme } from './_theme';

const ACCENT_COLOR = 'ACCENT_COLOR';
const ITEM_SIZE_FIXED = 'ITEM_SIZE_FIXED';
const FIXED_ITEM_GAP = 'FIXED_ITEM_GAP';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we use the naming to group them a little bit? Like ITEMS_FIXED_GAP or so?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Better like that?

@ruediste
Copy link
Contributor Author

Btw: do you squash commit? Or should I care about the commit history?

@SebastianStehle SebastianStehle merged commit 6a9637a into mydraft-cc:master Feb 21, 2025
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