EnxDev commented on code in PR #32705:
URL: https://github.com/apache/superset/pull/32705#discussion_r2017592480


##########
superset-frontend/src/components/Grid/Grid.stories.tsx:
##########
@@ -0,0 +1,169 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+import { Meta, StoryObj } from '@storybook/react';
+import Slider from 'src/components/Slider/index';
+import { useState } from 'react';
+import { Row, Col } from './index';
+
+export default {
+  title: 'Components/Grid',
+  component: Row,
+  subcomponents: { Col },
+  argTypes: {
+    // Row properties
+    align: {
+      control: 'select',
+      options: ['top', 'middle', 'bottom', 'stretch'],
+      description: 'Vertical alignment',
+    },
+    justify: {
+      control: 'select',
+      options: [
+        'start',
+        'end',
+        'center',
+        'space-around',
+        'space-between',
+        'space-evenly',
+      ],
+      description: 'Horizontal arrangement',
+    },
+    gutter: {
+      control: 'object',
+      description: 'Spacing between grids',
+    },
+    wrap: {
+      control: 'boolean',
+      description: 'Auto wrap line',
+    },
+    // Col properties
+    flex: {
+      control: 'text',
+      description: 'Flex layout style',
+    },
+    offset: {
+      control: 'number',
+      description: 'The number of cells to offset Col from the left',
+    },
+    order: {
+      control: 'number',
+      description: 'Raster order',
+    },
+    pull: {
+      control: 'number',
+      description: 'The number of cells that raster is moved to the left',
+    },
+    push: {
+      control: 'number',
+      description: 'The number of cells that raster is moved to the right',
+    },
+    span: {
+      control: 'number',
+      description: 'Raster number of cells to occupy',
+    },
+    xs: {
+      control: 'object',
+      description: 'Settings for screen < 576px',
+    },
+    sm: {
+      control: 'object',
+      description: 'Settings for screen ≥ 576px',
+    },
+    md: {
+      control: 'object',
+      description: 'Settings for screen ≥ 768px',
+    },
+    lg: {
+      control: 'object',
+      description: 'Settings for screen ≥ 992px',
+    },
+    xl: {
+      control: 'object',
+      description: 'Settings for screen ≥ 1200px',
+    },
+    xxl: {
+      control: 'object',
+      description: 'Settings for screen ≥ 1600px',
+    },
+  },
+  parameters: {
+    docs: {
+      description: {
+        component:
+          'Grid is a hook, but here we are testing the Row and Col components 
that use it.',
+      },
+    },
+  },
+} as Meta<typeof Row>;
+
+type Story = StoryObj<typeof Row>;
+
+export const GridStory: Story = {
+  render: () => {
+    const [gutter, setGutter] = useState(24);
+    const [vgutter, setVgutter] = useState(24);

Review Comment:
   The vertical gutter was being applied, but since all the columns were on the 
same row, it wasn’t visible when it was applied.
   
   I made it so that after every 4 columns, the next ones wrap to a new row, 
allowing the vertical gutter between columns to be tested as well. thanks!
   
   ![Screenshot 2025-03-27 
215649](https://github.com/user-attachments/assets/8e3bd076-08d9-4f78-8d53-79eb50cc2b77)
   



-- 
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-unsubscr...@superset.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to