fix: database logos look stretched (#28340)

This commit is contained in:
Maxime Beauchemin 2024-05-03 17:23:42 -07:00 committed by GitHub
parent 49231da42f
commit f5843fe588
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 84 additions and 31 deletions

View File

@ -4,6 +4,7 @@ on:
push:
paths:
- "docs/**"
- "README.md"
branches:
- "master"

View File

@ -64,6 +64,7 @@ temporary_superset_ui/*
# docs overrides for third party logos we don't have the rights to
google-big-query.svg
google-sheets.svg
ibm-db2.svg
postgresql.svg
snowflake.svg

View File

@ -104,39 +104,39 @@ Superset can query data from any SQL-speaking datastore or data engine (Presto,
Here are some of the major database solutions that are supported:
<p align="center">
<img src="https://superset.apache.org/img/databases/redshift.png" alt="redshift" border="0" width="200" height="80"/>
<img src="https://superset.apache.org/img/databases/google-biquery.png" alt="google-biquery" border="0" width="200" height="80"/>
<img src="https://superset.apache.org/img/databases/snowflake.png" alt="snowflake" border="0" width="200" height="80"/>
<img src="https://superset.apache.org/img/databases/trino.png" alt="trino" border="0" width="200" height="80"/>
<img src="https://superset.apache.org/img/databases/presto.png" alt="presto" border="0" width="200" height="80"/>
<img src="https://superset.apache.org/img/databases/databricks.png" alt="databricks" border="0" width="200" height="80" />
<img src="https://superset.apache.org/img/databases/druid.png" alt="druid" border="0" width="200" height="80" />
<img src="https://superset.apache.org/img/databases/firebolt.png" alt="firebolt" border="0" width="200" height="80" />
<img src="https://superset.apache.org/img/databases/timescale.png" alt="timescale" border="0" width="200" height="80" />
<img src="https://superset.apache.org/img/databases/rockset.png" alt="rockset" border="0" width="200" height="80" />
<img src="https://superset.apache.org/img/databases/postgresql.png" alt="postgresql" border="0" width="200" height="80" />
<img src="https://superset.apache.org/img/databases/mysql.png" alt="mysql" border="0" width="200" height="80" />
<img src="https://superset.apache.org/img/databases/mssql-server.png" alt="mssql-server" border="0" width="200" height="80" />
<img src="https://superset.apache.org/img/databases/db2.png" alt="db2" border="0" width="200" height="80" />
<img src="https://superset.apache.org/img/databases/sqlite.png" alt="sqlite" border="0" width="200" height="80" />
<img src="https://superset.apache.org/img/databases/sybase.png" alt="sybase" border="0" width="200" height="80" />
<img src="https://superset.apache.org/img/databases/mariadb.png" alt="mariadb" border="0" width="200" height="80" />
<img src="https://superset.apache.org/img/databases/vertica.png" alt="vertica" border="0" width="200" height="80" />
<img src="https://superset.apache.org/img/databases/oracle.png" alt="oracle" border="0" width="200" height="80" />
<img src="https://superset.apache.org/img/databases/firebird.png" alt="firebird" border="0" width="200" height="80" />
<img src="https://superset.apache.org/img/databases/greenplum.png" alt="greenplum" border="0" width="200" height="80" />
<img src="https://superset.apache.org/img/databases/clickhouse.png" alt="clickhouse" border="0" width="200" height="80" />
<img src="https://superset.apache.org/img/databases/exasol.png" alt="exasol" border="0" width="200" height="80" />
<img src="https://superset.apache.org/img/databases/monet-db.png" alt="monet-db" border="0" width="200" height="80" />
<img src="https://superset.apache.org/img/databases/redshift.png" alt="redshift" border="0" width="200"/>
<img src="https://superset.apache.org/img/databases/google-biquery.png" alt="google-biquery" border="0" width="200"/>
<img src="https://superset.apache.org/img/databases/snowflake.png" alt="snowflake" border="0" width="200"/>
<img src="https://superset.apache.org/img/databases/trino.png" alt="trino" border="0" width="150" />
<img src="https://superset.apache.org/img/databases/presto.png" alt="presto" border="0" width="200"/>
<img src="https://superset.apache.org/img/databases/databricks.png" alt="databricks" border="0" width="160" />
<img src="https://superset.apache.org/img/databases/druid.png" alt="druid" border="0" width="200" />
<img src="https://superset.apache.org/img/databases/firebolt.png" alt="firebolt" border="0" width="200" />
<img src="https://superset.apache.org/img/databases/timescale.png" alt="timescale" border="0" width="200" />
<img src="https://superset.apache.org/img/databases/rockset.png" alt="rockset" border="0" width="200" />
<img src="https://superset.apache.org/img/databases/postgresql.png" alt="postgresql" border="0" width="200" />
<img src="https://superset.apache.org/img/databases/mysql.png" alt="mysql" border="0" width="200" />
<img src="https://superset.apache.org/img/databases/mssql-server.png" alt="mssql-server" border="0" width="200" />
<img src="https://superset.apache.org/img/databases/imb-db2.svg" alt="db2" border="0" width="220" />
<img src="https://superset.apache.org/img/databases/sqlite.png" alt="sqlite" border="0" width="200" />
<img src="https://superset.apache.org/img/databases/sybase.png" alt="sybase" border="0" width="200" />
<img src="https://superset.apache.org/img/databases/mariadb.png" alt="mariadb" border="0" width="200" />
<img src="https://superset.apache.org/img/databases/vertica.png" alt="vertica" border="0" width="200" />
<img src="https://superset.apache.org/img/databases/oracle.png" alt="oracle" border="0" width="200" />
<img src="https://superset.apache.org/img/databases/firebird.png" alt="firebird" border="0" width="200" />
<img src="https://superset.apache.org/img/databases/greenplum.png" alt="greenplum" border="0" width="200" />
<img src="https://superset.apache.org/img/databases/clickhouse.png" alt="clickhouse" border="0" width="200" />
<img src="https://superset.apache.org/img/databases/exasol.png" alt="exasol" border="0" width="160" />
<img src="https://superset.apache.org/img/databases/monet-db.png" alt="monet-db" border="0" width="200" />
<img src="https://superset.apache.org/img/databases/apache-kylin.png" alt="apache-kylin" border="0" width="80"/>
<img src="https://superset.apache.org/img/databases/hologres.png" alt="hologres" border="0" width="80"/>
<img src="https://superset.apache.org/img/databases/netezza.png" alt="netezza" border="0" width="80"/>
<img src="https://superset.apache.org/img/databases/pinot.png" alt="pinot" border="0" width="200" height="80"/>
<img src="https://superset.apache.org/img/databases/teradata.png" alt="teradata" border="0" width="200" height="80"/>
<img src="https://superset.apache.org/img/databases/yugabyte.png" alt="yugabyte" border="0" width="200" height="80"/>
<img src="https://superset.apache.org/img/databases/databend.png" alt="databend" border="0" width="200" height="80"/>
<img src="https://superset.apache.org/img/databases/starrocks.png" alt="starrocks" border="0" width="200" height="80"/>
<img src="https://superset.apache.org/img/databases/doris.png" alt="doris" border="0" width="200" height="80"/>
<img src="https://superset.apache.org/img/databases/pinot.png" alt="pinot" border="0" width="200" />
<img src="https://superset.apache.org/img/databases/teradata.png" alt="teradata" border="0" width="200" />
<img src="https://superset.apache.org/img/databases/yugabyte.png" alt="yugabyte" border="0" width="200" />
<img src="https://superset.apache.org/img/databases/databend.png" alt="databend" border="0" width="200" />
<img src="https://superset.apache.org/img/databases/starrocks.png" alt="starrocks" border="0" width="200" />
<img src="https://superset.apache.org/img/databases/doris.png" alt="doris" border="0" width="200" />
</p>
**A more comprehensive list of supported databases** along with the configuration instructions can be found [here](https://superset.apache.org/docs/configuration/databases).

2
docs/.gitignore vendored
View File

@ -21,5 +21,5 @@ yarn-error.log*
docs/.zshrc
# Gets copies from the root of the project at build time (yarn start / yarn build)
# Gets copied from the root of the project at build time (yarn start / yarn build)
docs/intro.md

51
docs/static/img/databases/ibm-db2.svg vendored Normal file
View File

@ -0,0 +1,51 @@
<svg width="600" height="263" viewBox="0 0 600 263" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.0488281 224.047H300.809V38.0058H0.0488281V224.047Z" fill="#1B1918"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M246.245 96.0585H211.238L213.393 90.0245H246.245V96.0585Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M152.919 90.0216L185.422 90.0188L187.551 96.0698C187.566 96.0613 152.93 96.0782 152.93 96.0698C152.93 96.0613 152.908 90.0245 152.919 90.0245V90.0216Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M127.104 90.0217C132.462 90.5372 137.118 92.4471 141.085 96.0698C141.085 96.0698 82.1699 96.0754 82.1699 96.0698C82.1699 96.0613 82.1699 90.0217 82.1699 90.0217H127.104Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M35.9355 96.0585H76.8667V90.0217H35.9355V96.0585Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M246.244 107.386H207.223C207.223 107.386 209.352 101.38 209.338 101.377H246.244V107.386Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M191.571 107.391H152.916V101.377H189.453L191.571 107.391Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M145.674 101.374C146.452 103.357 147.37 105.053 147.37 107.383H82.1816V101.374H145.674Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M35.9355 107.383H76.8667V101.374H35.9355V107.383Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M203.23 118.738L205.374 112.704L234.671 112.713V118.724L203.23 118.738Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M193.453 112.701L195.585 118.738H164.443V112.701H193.453Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M147.886 112.701C147.886 114.769 147.627 116.927 147.024 118.738H129.176V112.701H147.886Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M47.3438 118.735H64.936V112.73H47.3438V118.735Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M94.0215 118.735H111.583V112.701H94.0215V118.735Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M181.743 125.254C181.743 125.254 181.745 129.823 181.743 129.832H164.443V123.826H197.411L199.459 129.426C199.467 129.429 201.431 123.812 201.436 123.823H234.663V129.832H217.445C217.445 129.823 217.437 125.257 217.437 125.257L215.842 129.832L183.331 129.823L181.743 125.254Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M94.0215 123.823H144.437C143.333 125.834 141.333 128.279 139.434 129.832C139.434 129.832 94.0215 129.84 94.0215 129.832C94.0215 129.823 94.0215 123.834 94.0215 123.823Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M47.3438 129.832H64.936V123.823H47.3438V129.832Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M217.447 141.156H234.665V135.15H217.447V141.156Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M181.743 135.15H164.443V141.156C164.432 141.153 181.745 141.159 181.745 141.156C181.745 141.153 181.765 135.15 181.743 135.15Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M213.97 135.15C213.891 135.142 211.953 141.153 211.871 141.156L187.349 141.167C187.33 141.159 185.194 135.142 185.191 135.15H213.97Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M94.0195 135.147H139.351C141.418 136.874 143.289 139.001 144.754 141.156C144.838 141.153 94.0223 141.159 94.0223 141.156C94.0223 141.153 94.0195 135.156 94.0195 135.147Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M64.9323 141.156V135.147H47.3711C47.3711 135.147 47.3767 141.153 47.3711 141.153C47.3683 141.153 64.9239 141.156 64.9323 141.156Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M217.447 152.483H234.662V146.474H217.447V152.483Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M164.441 152.48H181.743V146.474H164.441V152.48Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M207.846 152.511C207.851 152.483 209.97 146.469 210.001 146.474H189.155C189.118 146.472 191.293 152.483 191.293 152.483C191.293 152.483 207.84 152.537 207.846 152.511Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M94.0227 152.48C94.0227 152.506 94.0199 146.474 94.0227 146.474H111.846C111.846 146.474 111.86 152.483 111.846 152.483C111.829 152.483 94.0227 152.478 94.0227 152.48Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M147.254 146.474C148.116 148.283 148.204 150.441 148.375 152.509H129.49V146.474H147.254Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M47.3711 152.48H64.9323V146.474H47.3711V152.48Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M217.447 163.577H246.246V157.568H217.447V163.577Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M152.916 163.577H181.742V157.568H152.916V163.577Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M203.972 163.577H195.18L193.07 157.568H206.006L203.972 163.577Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M35.9317 157.568V163.574H76.8346C76.8515 163.585 76.8149 157.571 76.8346 157.571C76.8515 157.571 35.8866 157.568 35.9317 157.568Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M147.627 157.568C147.196 159.551 146.802 161.965 145.354 163.577L144.813 163.574H82.1797V157.568H147.627Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M199.986 174.915H199.178L197.121 168.892H202.096L199.986 174.915Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M217.447 174.929H246.246V168.892H217.447V174.929Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M82.1699 174.915V168.904C82.1699 168.904 141.262 168.912 141.431 168.912C137.462 172.704 132.02 174.845 126.157 174.929L82.1784 174.918L82.1699 174.915Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M152.916 174.929H181.742V168.892H152.916V174.929Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M76.8348 168.92C76.8348 168.92 76.8151 174.915 76.8348 174.915C76.8517 174.915 35.9459 174.94 35.9319 174.926C35.9234 174.915 35.9431 168.904 35.9319 168.904C35.9234 168.904 76.8151 168.94 76.8348 168.92Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M256.196 162.731C257.3 162.731 258.379 163.013 259.436 163.585C260.486 164.148 261.309 164.963 261.895 166.019C262.484 167.075 262.777 168.177 262.777 169.323C262.777 170.456 262.489 171.551 261.909 172.597C261.329 173.645 260.52 174.459 259.472 175.036C258.427 175.616 257.334 175.907 256.196 175.907C255.055 175.907 253.962 175.616 252.917 175.036C251.869 174.459 251.058 173.645 250.475 172.597C249.895 171.551 249.602 170.456 249.602 169.323C249.602 168.177 249.897 167.075 250.489 166.019C251.08 164.963 251.903 164.148 252.954 163.585C254.01 163.013 255.089 162.731 256.196 162.731ZM256.196 163.822C255.269 163.822 254.368 164.061 253.492 164.534C252.616 165.008 251.931 165.686 251.435 166.568C250.94 167.45 250.695 168.368 250.695 169.323C250.695 170.273 250.937 171.18 251.424 172.05C251.909 172.921 252.588 173.599 253.461 174.087C254.334 174.571 255.247 174.816 256.196 174.816C257.143 174.816 258.055 174.571 258.929 174.087C259.802 173.599 260.481 172.921 260.963 172.05C261.447 171.18 261.687 170.273 261.687 169.323C261.687 168.368 261.439 167.45 260.948 166.568C260.455 165.686 259.771 165.008 258.892 164.534C258.013 164.061 257.115 163.822 256.196 163.822ZM253.303 172.957V165.878H255.74C256.574 165.878 257.176 165.943 257.548 166.075C257.923 166.205 258.219 166.433 258.441 166.76C258.664 167.084 258.774 167.43 258.774 167.796C258.774 168.312 258.588 168.765 258.216 169.146C257.847 169.532 257.354 169.746 256.743 169.794C256.991 169.898 257.193 170.022 257.343 170.168C257.63 170.444 257.979 170.912 258.393 171.571L259.255 172.957H257.867L257.236 171.842C256.743 170.963 256.34 170.413 256.036 170.191C255.827 170.03 255.523 169.951 255.12 169.954H254.447V172.957H253.303ZM254.447 168.971H255.836C256.5 168.971 256.954 168.873 257.193 168.675C257.436 168.478 257.557 168.216 257.557 167.895C257.557 167.687 257.498 167.498 257.382 167.334C257.267 167.168 257.106 167.044 256.9 166.965C256.692 166.884 256.309 166.844 255.748 166.844H254.447V168.971Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M300.809 222.993H600.056V37.9718H300.809V222.993Z" fill="#09AF05"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M352.369 169.633V86.9004H375.215C404.36 86.9004 418.952 100.332 418.952 127.232C418.952 139.993 414.895 150.255 406.802 158.013C398.709 165.751 387.878 169.633 374.288 169.633H352.369ZM362.06 95.6641V160.869H374.407C385.258 160.869 393.686 157.954 399.731 152.145C405.78 146.334 408.791 138.102 408.791 127.448C408.791 106.259 397.526 95.6641 374.978 95.6641H362.06ZM435.22 169.633V86.9004H458.753C465.903 86.9004 471.593 88.6526 475.768 92.14C479.963 95.6444 482.07 100.214 482.07 105.825C482.07 110.513 480.791 114.589 478.25 118.054C475.709 121.521 472.224 123.983 467.754 125.44V125.677C473.326 126.327 477.796 128.434 481.146 131.978C484.492 135.542 486.166 140.17 486.166 145.863C486.166 152.931 483.625 158.664 478.546 163.055C473.464 167.444 467.064 169.633 459.325 169.633H435.22ZM444.908 95.6641V122.389H454.835C460.131 122.389 464.306 121.107 467.359 118.547C470.393 115.986 471.909 112.383 471.909 107.715C471.909 99.6812 466.63 95.6641 456.035 95.6641H444.908ZM444.908 131.091V160.869H458.063C463.756 160.869 468.168 159.509 471.298 156.833C474.45 154.134 476.005 150.43 476.005 145.745C476.005 135.975 469.348 131.091 456.035 131.091H444.908ZM547.492 169.633H497.628V161.202L521.753 137.04C527.897 130.877 532.308 125.755 534.928 121.659C537.565 117.564 538.886 113.192 538.886 108.524C538.886 103.757 537.525 100.076 534.79 97.4557C532.052 94.8359 528.173 93.5373 523.13 93.5373C515.744 93.5373 508.676 96.6867 501.902 102.988V93.064C508.361 88.0216 515.882 85.5032 524.469 85.5032C531.855 85.5032 537.644 87.5117 541.878 91.509C546.112 95.5064 548.238 100.884 548.238 107.617C548.238 112.915 546.762 118.093 543.847 123.155C540.914 128.217 535.675 134.499 528.094 142.001L508.992 160.869V161.086H547.492V169.633Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M557.768 163.258C558.873 163.258 559.952 163.543 561.005 164.112C562.059 164.678 562.881 165.489 563.467 166.546C564.053 167.602 564.349 168.706 564.349 169.85C564.349 170.985 564.059 172.078 563.479 173.123C562.901 174.171 562.09 174.985 561.045 175.563C560 176.146 558.907 176.433 557.768 176.433C556.628 176.433 555.535 176.146 554.487 175.563C553.442 174.985 552.627 174.171 552.047 173.123C551.467 172.078 551.174 170.985 551.174 169.85C551.174 168.706 551.47 167.602 552.058 166.546C552.653 165.489 553.475 164.678 554.526 164.112C555.58 163.543 556.659 163.258 557.768 163.258ZM557.768 164.348C556.842 164.348 555.937 164.588 555.061 165.061C554.185 165.534 553.501 166.213 553.008 167.098C552.512 167.98 552.264 168.895 552.264 169.85C552.264 170.799 552.509 171.709 552.994 172.58C553.481 173.447 554.16 174.129 555.033 174.614C555.906 175.098 556.816 175.343 557.768 175.343C558.715 175.343 559.628 175.098 560.501 174.614C561.371 174.129 562.053 173.447 562.535 172.58C563.017 171.709 563.259 170.799 563.259 169.85C563.259 168.895 563.011 167.98 562.521 167.098C562.028 166.213 561.343 165.534 560.464 165.061C559.585 164.588 558.687 164.348 557.768 164.348ZM554.875 173.484V166.405H557.312C558.146 166.405 558.749 166.47 559.121 166.602C559.495 166.732 559.791 166.96 560.014 167.287C560.233 167.61 560.346 167.957 560.346 168.323C560.346 168.839 560.16 169.292 559.788 169.673C559.419 170.058 558.926 170.273 558.312 170.32C558.563 170.425 558.766 170.549 558.915 170.695C559.199 170.971 559.549 171.442 559.963 172.098L560.828 173.484H559.439L558.808 172.371C558.312 171.49 557.912 170.94 557.608 170.72C557.399 170.557 557.095 170.478 556.692 170.481H556.019V173.484H554.875ZM556.019 169.498H557.408C558.073 169.498 558.523 169.399 558.766 169.202C559.008 169.005 559.129 168.743 559.129 168.422C559.129 168.213 559.07 168.025 558.954 167.861C558.836 167.695 558.676 167.574 558.47 167.492C558.261 167.413 557.881 167.371 557.321 167.371H556.019V169.498Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0">
<rect width="600" height="186.058" fill="white" transform="translate(0 38)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 679 KiB

BIN
docs/static/img/databases/mssql.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 13 KiB