Skip to content

Commit

Permalink
Enabled column title text truncation
Browse files Browse the repository at this point in the history
  • Loading branch information
praveen-murali-ind committed Oct 17, 2024
1 parent 59dd20f commit b59fcf1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions src/components/Table/components/HeaderCell/CellContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ const CellContent = ({
title=""
onClick={isSortable ? noop : headerProps.onClick}
>
<div className="flex items-center justify-between">
<div className="min-w-0 flex-grow">{children}</div>
<div className="neeto-ui-flex neeto-ui-items-center neeto-ui-justify-between">
<div className="neeto-ui-min-w-0 neeto-ui-flex-grow neeto-ui-truncate">
{children}
</div>
{hasMoreMenu && (
<HeaderCellMenu
{...{
Expand Down
8 changes: 4 additions & 4 deletions src/components/Table/components/HeaderCell/HeaderCellMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ const HeaderCellMenu = ({
<div onClick={event => event.stopPropagation()}>
<Dropdown
appendTo={() => document.body}
className="flex"
className="neeto-ui-flex"
icon={MenuHorizontal}
position="auto"
strategy="fixed"
zIndex={99999}
buttonProps={{
className: "min-h-0 flex-shrink-0",
className: "neeto-ui-min-h-0 neeto-ui-flex-shrink-0",
style: "text",
size: "medium",
"data-testid": "column-menu-button",
Expand All @@ -61,7 +61,7 @@ const HeaderCellMenu = ({
{isSortable && (
<>
<MenuItem.Button
className="flex items-center justify-between"
className="neeto-ui-flex neeto-ui-items-center neeto-ui-justify-between"
onClick={() =>
onSort({
column,
Expand All @@ -78,7 +78,7 @@ const HeaderCellMenu = ({
)}
</MenuItem.Button>
<MenuItem.Button
className="flex items-center justify-between"
className="neeto-ui-flex neeto-ui-items-center neeto-ui-justify-between"
onClick={() =>
onSort({
column,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/components/SelectAllRowsCallout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const SelectAllRowsCallout = ({
{...calloutProps}
data-testid="select-all-rows-callout"
>
<div className="flex space-x-3">
<div className="neeto-ui-flex neeto-ui-gap-3">
<Typography style="body2">{selectAllRowMessage}</Typography>
<Button
data-testid="select-all-rows-button"
Expand Down

0 comments on commit b59fcf1

Please sign in to comment.