Skip to content

Commit

Permalink
Change current thumbnails to smaller ones. (apache#4430)
Browse files Browse the repository at this point in the history
* Change current thumbnails to smaller ones.

* More density in the VizTypesControl modal
  • Loading branch information
mistercrunch authored Feb 16, 2018
1 parent c60db6a commit 32d5905
Show file tree
Hide file tree
Showing 100 changed files with 34 additions and 32 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ recursive-include superset/migrations *
recursive-include superset/static *
recursive-exclude superset/static/docs *
recursive-exclude superset/static/spec *
recursive-exclude superset/static/images/viz_thumbnails_large *
recursive-exclude superset/static/assets/node_modules *
recursive-include superset/templates *
recursive-include superset/translations *
Expand Down
58 changes: 29 additions & 29 deletions docs/gallery.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,88 +2,88 @@ Gallery
=======

.. image:: _static/img/viz_thumbnails/line.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/bubble.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/table.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/pie.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/bar.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/world_map.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/sankey.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/word_cloud.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/filter_box.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/pivot_table.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/directed_force.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/compare.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/sunburst.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/area.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/big_number.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/big_number_total.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/bullet.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/dist_bar.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/heatmap.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/markup.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/para.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/iframe.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/box_plot.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/treemap.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/cal_heatmap.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/horizon.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/mapbox.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/separator.png
:scale: 25 %
:scale: 50 %

.. image:: _static/img/viz_thumbnails/histogram.png
:scale: 25 %
:scale: 50 %
Binary file modified superset/assets/images/viz_thumbnails/area.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/big_number.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/big_number_total.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/box_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/bubble.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/bullet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/cal_heatmap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/chord.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/compare.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/country_map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/deck_arc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/deck_geojson.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/deck_grid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/deck_hex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/deck_multi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/deck_path.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/deck_polygon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/deck_scatter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/deck_screengrid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/directed_force.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/dist_bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/dual_line.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/event_flow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/filter_box.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified superset/assets/images/viz_thumbnails/heatmap.png
Binary file modified superset/assets/images/viz_thumbnails/histogram.png
Binary file modified superset/assets/images/viz_thumbnails/horizon.png
Binary file modified superset/assets/images/viz_thumbnails/iframe.png
Binary file modified superset/assets/images/viz_thumbnails/line.png
Binary file modified superset/assets/images/viz_thumbnails/mapbox.png
Binary file modified superset/assets/images/viz_thumbnails/markup.png
Binary file modified superset/assets/images/viz_thumbnails/multi.png
Binary file modified superset/assets/images/viz_thumbnails/paired_ttest.png
Binary file modified superset/assets/images/viz_thumbnails/para.png
Binary file modified superset/assets/images/viz_thumbnails/partition.png
Binary file modified superset/assets/images/viz_thumbnails/pie.png
Binary file modified superset/assets/images/viz_thumbnails/pivot_table.png
Binary file modified superset/assets/images/viz_thumbnails/rose.png
Binary file modified superset/assets/images/viz_thumbnails/sankey.png
Binary file modified superset/assets/images/viz_thumbnails/separator.png
Binary file modified superset/assets/images/viz_thumbnails/sunburst.png
Binary file modified superset/assets/images/viz_thumbnails/table.png
Binary file modified superset/assets/images/viz_thumbnails/time_pivot.png
Binary file modified superset/assets/images/viz_thumbnails/time_table.png
Binary file modified superset/assets/images/viz_thumbnails/treemap.png
Binary file modified superset/assets/images/viz_thumbnails/word_cloud.png
Binary file modified superset/assets/images/viz_thumbnails/world_map.png
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default class VizTypeControl extends React.PureComponent {
src={`/static/assets/images/viz_thumbnails/${vt}.png`}
/>
<div className="viztype-label">
<strong>{visTypes[vt].label}</strong>
{visTypes[vt].label}
</div>
</div>);
}
Expand All @@ -72,13 +72,13 @@ export default class VizTypeControl extends React.PureComponent {
const filteredVizTypes = Object.keys(visTypes)
.filter(vt => filter.length === 0 || visTypes[vt].label.toLowerCase().includes(filter));

const imgPerRow = 4;
const imgPerRow = 6;
const rows = [];
for (let i = 0; i <= filteredVizTypes.length; i += imgPerRow) {
rows.push(
<Row key={`row-${i}`}>
{filteredVizTypes.slice(i, i + imgPerRow).map(vt => (
<Col md={3} key={`grid-col-${vt}`}>
<Col md={12 / imgPerRow} key={`grid-col-${vt}`}>
{this.renderVizType(vt)}
</Col>
))}
Expand Down
1 change: 1 addition & 0 deletions superset/assets/javascripts/explore/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

.viztype-label {
text-align: center;
font-size: 12px;
}

.viztype-selector-container {
Expand Down

0 comments on commit 32d5905

Please sign in to comment.