Skip to content

Commit 984b020

Browse files
committed
prevent empty area if table doesn't use the whole width of the container
1 parent b774b2a commit 984b020

File tree

3 files changed

+102
-42
lines changed

3 files changed

+102
-42
lines changed

packages/main/src/components/AnalyticalTable/AnayticalTable.jss.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,27 @@ const styles = {
1212
minHeight: '3rem',
1313
fontFamily: ThemingParameters.sapFontFamily,
1414
fontSize: ThemingParameters.sapFontSize,
15-
fontWeight: 'normal'
15+
fontWeight: 'normal',
16+
backgroundColor: ThemingParameters.sapList_Background
1617
},
1718
tableHeaderRow: {
1819
height: CssSizeVariables.sapWcrAnalyticalTableRowHeight,
1920
display: 'inline-flex'
2021
},
21-
th: {
22+
tableHeaderBackgroundElement: {
23+
boxSizing: 'border-box',
24+
position: 'absolute',
25+
left: 0,
26+
right: 0,
27+
height: CssSizeVariables.sapWcrAnalyticalTableRowHeight,
2228
backgroundColor: ThemingParameters.sapList_HeaderBackground,
29+
borderTop: `1px solid ${ThemingParameters.sapList_BorderColor}`,
30+
borderBottom: `1px solid ${ThemingParameters.sapList_BorderColor}`
31+
},
32+
th: {
2333
height: CssSizeVariables.sapWcrAnalyticalTableRowHeight,
2434
color: ThemingParameters.sapList_HeaderTextColor,
35+
backgroundColor: ThemingParameters.sapList_HeaderBackground,
2536
borderTop: `1px solid ${ThemingParameters.sapList_BorderColor}`,
2637
borderBottom: `1px solid ${ThemingParameters.sapList_BorderColor}`,
2738
borderRight: `1px solid ${ThemingParameters.sapList_BorderColor}`,
@@ -39,7 +50,6 @@ const styles = {
3950
},
4051
tbody: {
4152
position: 'relative',
42-
backgroundColor: ThemingParameters.sapList_Background,
4353
overflowX: 'hidden',
4454
overflowY: 'auto',
4555
scrollBarWidth: 'none !important',

0 commit comments

Comments
 (0)