Skip to content

Commit 2e64edb

Browse files
committed
update
1 parent 82b6bc4 commit 2e64edb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/common/components/mock-components/front-rich-components/horizontal-menu/horizontal-menu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ export const HorizontalMenu = forwardRef<any, ShapeProps>((props, ref) => {
4646
const headers = extractCSVHeaders(csvData[0]);
4747
const itemLabels = headers.map(header => header.text);
4848
const totalVerticalPadding = 8;
49-
5049
const numberOfItems = itemLabels.length;
5150
const itemSpacing = 10;
5251

@@ -123,15 +122,16 @@ export const HorizontalMenu = forwardRef<any, ShapeProps>((props, ref) => {
123122
/>
124123
<Text
125124
x={itemSpacing * (index + 1) + itemWidth * index}
126-
y={restrictedHeight / 2 - 8}
125+
y={restrictedHeight / 2 - fontSize / 2}
127126
text={header}
128127
fontFamily="Arial"
129-
fontSize={16}
128+
fontSize={fontSize}
130129
fill={textColor}
131130
width={itemWidth}
132131
align="center"
133132
wrap="none"
134133
ellipsis={true}
134+
fontVariant={fontVariant}
135135
/>
136136
</Group>
137137
))}

0 commit comments

Comments
 (0)