Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ const ResponsiveLayout = (props: ResponsiveLayoutProps) => {
{columns.map((column) => {
const id = String(column.id);
const childDispatch = wrapDispatch(wrapDispatch(dispatch, "containers"), id);
if (!containers[id]) return null;
if (!containers[id] || column.hidden) return null;
const containerProps = containers[id].children;

// Use the actual minWidth from column configuration instead of calculated width
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import {
Option,
WidthIcon,
ImageCompIcon,
CloseEyeIcon,
} from "lowcoder-design";
import styled from "styled-components";
import { lastValueIfEqual } from "util/objectUtils";
Expand Down Expand Up @@ -608,6 +609,7 @@ const ColumnOption = new MultiCompBuilder(
radius: withDefault(RadiusControl, ""),
margin: withDefault(StringControl, ""),
padding: withDefault(StringControl, ""),
hidden: withDefault(BoolCodeControl, false),
},
(props) => props
)
Expand Down Expand Up @@ -644,6 +646,10 @@ const ColumnOption = new MultiCompBuilder(
preInputNode: <StyledIcon as={CompressIcon} title="" />,
placeholder: '3px',
})}
{children.hidden.propertyView({
label: trans('style.hideColumn'),
preInputNode: <StyledIcon as={CloseEyeIcon} title="" />
})}
</StyledContent>
))
.build();
Expand Down
1 change: 1 addition & 0 deletions translations/locales/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ export const en = {
"chartBorderColor": "Border Color",
"chartTextColor": "Text Color",
"detailSize": "Detail Size",
"hideColumn": "Hide Column",

"radiusTip": "Specifies the radius of the element's corners. Example: 5px, 50%, or 1em.",
"gapTip": "Specifies the gap between rows and columns in a grid or flex container. Example: 10px, 1rem, or 5%.",
Expand Down
Loading