You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jl...@apache.org on 2026/10/13 08:34:50 UTC

(superset) 01/01: style(explore): lift the Selector css comment out of the arrow body

This is an automated email from the ASF dual-hosted git repository.

sadpandajoe pushed a commit to branch ultraset-metric-filter-none-iterable-oxfmt-drift
in repository https://gitbox.apache.org/repos/asf/superset.git

commit f97a51f49c6b4a62fb9b614396e3ef1c8a629568
Author: Joe Li <jo...@preset.io>
AuthorDate: Tue Oct 13 08:33:28 2026 +0000

    style(explore): lift the Selector css comment out of the arrow body
    
    oxfmt 0.72.0 formats a comment sitting between the arrow and a tagged
    template body by trailing it after the arrow and dedenting the template,
    a shape found nowhere else in the frontend. Moving the comment above the
    css prop — the form already used a few hundred lines up in this same
    file — lets oxfmt collapse the arrow to the single-line form that 294
    other call sites in the frontend use.
    
    Co-Authored-By: Claude Opus 5 <no...@anthropic.com>
---
 .../explore/components/controls/VizTypeControl/VizTypeGallery.tsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/superset-frontend/src/explore/components/controls/VizTypeControl/VizTypeGallery.tsx b/superset-frontend/src/explore/components/controls/VizTypeControl/VizTypeGallery.tsx
index 04639f2d3fe..31c43ff0fef 100644
--- a/superset-frontend/src/explore/components/controls/VizTypeControl/VizTypeGallery.tsx
+++ b/superset-frontend/src/explore/components/controls/VizTypeControl/VizTypeGallery.tsx
@@ -716,8 +716,8 @@ export default function VizTypeGallery(props: VizTypeGalleryProps) {
     >
       <LeftPane aria-label={t('Choose chart type')} role="tablist">
         <Selector
-          css={({ sizeUnit }) => // adjust style for not being inside a collapse
-          css`
+          // adjust style for not being inside a collapse
+          css={({ sizeUnit }) => css`
             margin: ${sizeUnit * 2}px;
             margin-bottom: 0;
           `}
@@ -732,8 +732,8 @@ export default function VizTypeGallery(props: VizTypeGalleryProps) {
           onClick={clickSelector}
         />
         <Selector
-          css={({ sizeUnit }) => // adjust style for not being inside a collapse
-          css`
+          // adjust style for not being inside a collapse
+          css={({ sizeUnit }) => css`
             margin: ${sizeUnit * 2}px;
             margin-bottom: 0;
           `}