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

style: Layout for inactive list card with map #3637

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

ianjon3s
Copy link
Contributor

@ianjon3s ianjon3s commented Sep 6, 2024

What does this PR do?

Updates layout of the inactive list card so that cards with maps are arranged in a horizontal layout on desktop.

Also general style improvements to the list component as a whole (button contrast, table column widths).

Preview:
image

Copy link

github-actions bot commented Sep 6, 2024

Removed vultr server and associated DNS entries

@ianjon3s ianjon3s marked this pull request as ready for review September 6, 2024 11:14
@ianjon3s ianjon3s requested a review from a team September 6, 2024 11:15
Copy link
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

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

So tidy & compact 💅

@@ -115,39 +124,58 @@ const InactiveListCard: React.FC<{
const { schema, formik, removeItem, editItem, isPageComponent } =
useListContext();

const mapPreview = schema.fields.find(
(field) => field.data.fn === "features",
);
Copy link
Member

Choose a reason for hiding this comment

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

nit: we decided to make the fn user-configurable, so I think we'll want this to be based on field.type === "map" rather than relying on fn = "features"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for spotting, have updated 👍

@ianjon3s ianjon3s merged commit 579e56a into main Sep 6, 2024
12 checks passed
@ianjon3s ianjon3s deleted the ian/list-component-inactive-layout branch September 6, 2024 21:43
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