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

css: add margin-top to ResultSet #7679

Merged
merged 1 commit into from
Jun 18, 2019

Conversation

mistercrunch
Copy link
Member

@mistercrunch mistercrunch commented Jun 9, 2019

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

See images

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before

Screen Shot 2019-06-08 at 8 40 17 PM

Screen Shot 2019-06-08 at 8 40 10 PM

After

Screen Shot 2019-06-08 at 8 38 24 PM

Screen Shot 2019-06-08 at 8 38 20 PM

@@ -73,6 +73,7 @@ export default class ResultSet extends React.PureComponent {
// when new results comes in, save them locally and clear in store
if (this.props.cache && (!nextProps.query.cached)
&& nextProps.query.results
&& nextProps.query.results.data
Copy link
Member Author

Choose a reason for hiding this comment

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

FYI: Unrelated bug I hit while doing CSS tweaks

Copy link
Member

@etr2460 etr2460 left a comment

Choose a reason for hiding this comment

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

lgtm

I'm curious about the structure here and if there's a reason why we wouldn't just want to add padding to the tab-pane div by default so that each possible child element wouldn't need to have a margin. Does it not play nicely with the table elements?

@mistercrunch
Copy link
Member Author

I thought about the tradeoffs of padding the tab-pane a little, and though maybe we wanted more density like for data tables/previews. Then I thought that we don't want left or right margins for the layout to align.

I can to the conclusion that it's for the children to decide how they want to use the space.

I'm no designer and don't know much about structuring CSS properly. Happy to take a different approach.

@etr2460
Copy link
Member

etr2460 commented Jun 10, 2019

That makes sense to me, thanks for the context!

@mistercrunch mistercrunch merged commit f278faa into apache:master Jun 18, 2019
@mistercrunch mistercrunch deleted the sqllab_layout_tweaks branch June 18, 2019 05:57
michellethomas pushed a commit that referenced this pull request Jun 24, 2019
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.34.0 labels Feb 28, 2024
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/S 🚢 0.34.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants