You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "CorbinBullard (via GitHub)" <gi...@apache.org> on 2023/09/22 16:03:59 UTC
[GitHub] [superset] CorbinBullard opened a new pull request, #25372: fix(SqlLab): make icon placement even
CorbinBullard opened a new pull request, #25372:
URL: https://github.com/apache/superset/pull/25372
<!---
Please write the PR title following the conventions at https://www.conventionalcommits.org/en/v1.0.0/
Example:
fix(dashboard): load charts correctly
-->
f
### SUMMARY
<!--- Describe the change below, including rationale and design decisions -->
Fixes the placement of the SqlLab icons/tooltips
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
<!--- Skip this if not applicable -->
Before:

After:

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] justinpark commented on a diff in pull request #25372: fix(SqlLab): make icon placement even
Posted by "justinpark (via GitHub)" <gi...@apache.org>.
justinpark commented on code in PR #25372:
URL: https://github.com/apache/superset/pull/25372#discussion_r1334619230
##########
Pipfile:
##########
@@ -0,0 +1,11 @@
+[[source]]
Review Comment:
@CorbinBullard Could you remove this change since this change not related to UI change
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] kgabryje merged pull request #25372: fix(SqlLab): make icon placement even
Posted by "kgabryje (via GitHub)" <gi...@apache.org>.
kgabryje merged PR #25372:
URL: https://github.com/apache/superset/pull/25372
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] kgabryje commented on a diff in pull request #25372: fix(SqlLab): make icon placement even
Posted by "kgabryje (via GitHub)" <gi...@apache.org>.
kgabryje commented on code in PR #25372:
URL: https://github.com/apache/superset/pull/25372#discussion_r1336095383
##########
superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.tsx:
##########
@@ -85,7 +85,9 @@ const collapseStyles = (theme: SupersetTheme) => css`
padding: 0px ${theme.gridUnit * 4}px 0px 0px !important;
}
.ant-collapse-arrow {
- top: ${theme.gridUnit * 2}px !important;
+ padding: ${theme.gridUnit / 2}px 0 !important;
+ bottom: ${theme.gridUnit}px !important;
+ right: ${theme.gridUnit * 4}px !important;
Review Comment:
Do we actually need those styles? It looks like the arrow is correctly centred when you just remove the padding (see screenshot).
<img width="1546" alt="image" src="https://github.com/apache/superset/assets/15073128/b27d1331-aea3-4447-b39f-6c7c35e099cd">
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] justinpark commented on a diff in pull request #25372: fix(SqlLab): make icon placement even
Posted by "justinpark (via GitHub)" <gi...@apache.org>.
justinpark commented on code in PR #25372:
URL: https://github.com/apache/superset/pull/25372#discussion_r1334766526
##########
superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.tsx:
##########
@@ -85,11 +85,14 @@ const collapseStyles = (theme: SupersetTheme) => css`
padding: 0px ${theme.gridUnit * 4}px 0px 0px !important;
}
.ant-collapse-arrow {
- top: ${theme.gridUnit * 2}px !important;
+ padding: 2px 0 !important;
Review Comment:
```suggestion
padding: ${theme.gridUnit / 2}px 0 !important;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] kgabryje commented on a diff in pull request #25372: fix(SqlLab): make icon placement even
Posted by "kgabryje (via GitHub)" <gi...@apache.org>.
kgabryje commented on code in PR #25372:
URL: https://github.com/apache/superset/pull/25372#discussion_r1336096509
##########
superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.tsx:
##########
@@ -85,7 +85,9 @@ const collapseStyles = (theme: SupersetTheme) => css`
padding: 0px ${theme.gridUnit * 4}px 0px 0px !important;
}
.ant-collapse-arrow {
- top: ${theme.gridUnit * 2}px !important;
+ padding: ${theme.gridUnit / 2}px 0 !important;
+ bottom: ${theme.gridUnit}px !important;
+ right: ${theme.gridUnit * 4}px !important;
Review Comment:
Also, I wish we could clean up those `!important` statements... but we can leave that for another PR/task
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] justinpark commented on a diff in pull request #25372: fix(SqlLab): make icon placement even
Posted by "justinpark (via GitHub)" <gi...@apache.org>.
justinpark commented on code in PR #25372:
URL: https://github.com/apache/superset/pull/25372#discussion_r1334619786
##########
superset-frontend/package-lock.json:
##########
@@ -77984,7 +77984,7 @@
"@mapbox/geojson-extent": "^1.0.1",
"@math.gl/web-mercator": "^3.2.2",
"@types/d3-array": "^2.0.0",
- "@types/mapbox__geojson-extent": "*",
+ "@types/mapbox__geojson-extent": "^1.0.0",
Review Comment:
Please make a separate PR for this package version update since it's not related to the commit
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] kgabryje commented on pull request #25372: fix(SqlLab): make icon placement even
Posted by "kgabryje (via GitHub)" <gi...@apache.org>.
kgabryje commented on PR #25372:
URL: https://github.com/apache/superset/pull/25372#issuecomment-1734041375
Congrats on your first PR! Great job 🙂 I left a small suggestion but otherwise it looks good
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org