Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit dd7fb61

Browse files
committed
[Fix]: #1837 fix table header border styles
1 parent ba30103 commit dd7fb61

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

‎client/packages/lowcoder/src/comps/comps/tableComp/tableCompView.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export const TableCompView = React.memo((props: {
8181
const showVerticalScrollbar = compChildren.showVerticalScrollbar.getView();
8282
const visibleResizables = compChildren.visibleResizables.getView();
8383
const showHRowGridBorder = compChildren.showHRowGridBorder.getView();
84+
const showRowGridBorder = compChildren.showRowGridBorder.getView();
8485
const columnsStyle = compChildren.columnsStyle.getView();
8586
const summaryRowStyle = compChildren.summaryRowStyle.getView();
8687
const changeSet = useMemo(() => compChildren.columns.getChangeSet(), [compChildren.columns]);
@@ -373,6 +374,7 @@ export const TableCompView = React.memo((props: {
373374
$fixedToolbar={toolbar.fixedToolbar && toolbar.position === 'above'}
374375
$visibleResizables={visibleResizables}
375376
$showHRowGridBorder={showHRowGridBorder}
377+
$showRowGridBorder={showRowGridBorder}
376378
$isVirtual={scrollConfig.virtual}
377379
$showHorizontalScrollbar={showHorizontalScrollbar}
378380
$showVerticalScrollbar={showVerticalScrollbar}

‎client/packages/lowcoder/src/comps/comps/tableComp/tableStyles.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ export const TableWrapper = styled.div.attrs<{
138138
$fixedToolbar: boolean;
139139
$visibleResizables: boolean;
140140
$showHRowGridBorder?: boolean;
141+
$showRowGridBorder?: boolean;
141142
$isVirtual?: boolean;
142143
$showHorizontalScrollbar?: boolean;
143144
$showVerticalScrollbar?: boolean;
@@ -207,7 +208,10 @@ export const TableWrapper = styled.div.attrs<{
207208
border-color: ${(props) => props.$headerStyle.border};
208209
border-width: ${(props) => props.$headerStyle.borderWidth};
209210
color: ${(props) => props.$headerStyle.headerText};
210-
// border-inline-end: ${(props) => `${props.$headerStyle.borderWidth} solid ${props.$headerStyle.border}`} !important;
211+
${(props) => props.$showRowGridBorder
212+
? `border-inline-end: ${props.$headerStyle.borderWidth} solid ${props.$headerStyle.border} !important;`
213+
: `border-inline-end: none !important;`
214+
}
211215
212216
/* Proper styling for fixed header cells */
213217
&.ant-table-cell-fix-left, &.ant-table-cell-fix-right {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /