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

The specification list is now more responsive #15

Merged
merged 6 commits into from
Apr 23, 2018
Merged

The specification list is now more responsive #15

merged 6 commits into from
Apr 23, 2018

Conversation

PatrickShaw
Copy link
Collaborator

@PatrickShaw PatrickShaw commented Apr 21, 2018

Reworked a little bit of the GUI so it's more responsive. Here's a comparison.
Changed (max width of the list is 800px):
fc5f0cce-b6c2-4100-y778-d4c9c932cde0

Original:
609c8ae2-357b-47c6-yee6-5a54218a3452

Patrick Shaw added 3 commits April 22, 2018 03:50
Was causing errors on Macs
Hopefully this will fix the problem this time
<List className={classes.bordered}>
{specification.sdks.map(sdk => (
<ListItem>
<SdkItem sdk={sdk} key={sdk.id} />
Copy link
Collaborator

Choose a reason for hiding this comment

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

key should be on ListItem.

Copy link
Collaborator Author

@PatrickShaw PatrickShaw Apr 23, 2018

Choose a reason for hiding this comment

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

yes :) ty

},
sdkHeaderActions: {
flexGrow: 0,
flexShrink: 1,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Kinda minor, but flex-grow is 0 by default and flex-shrink is 1 by default. Could we make it more concise by removing default values?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm a fan of being explicit but I suppose it forces the JS file payload to be bigger.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you remove the min-width ones at least? Don't see the need for those at all.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Read the thing i said below, flexbox children have min-width: auto

flexGrow: 0
},
summaryDescription: {
minWidth: 0,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same with min-width, 0 is the default anyway.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually on flexbox children min-width is set to auto

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh ok, fair enough

Copy link
Collaborator

Choose a reason for hiding this comment

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

Fix the key thing and I'll approve :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Okay donzies 🎉

minWidth: 0,
flexBasis: '220px',
flexShrink: 1,
flexGrow: 0
Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you want to remove these 2 as well? (since you removed the other one, don't have to, just though I'd check)

@PatrickShaw PatrickShaw merged commit 4a10554 into telstra:development Apr 23, 2018
@PatrickShaw PatrickShaw deleted the responsive-list branch October 23, 2018 12:55
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