Skip to content

Commit

Permalink
fix grid header jittering (#426)
Browse files Browse the repository at this point in the history
Signed-off-by: ryjiang <[email protected]>
  • Loading branch information
shanghaikid authored Mar 8, 2024
1 parent 6fe7d9a commit 7c7bfc4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions client/src/pages/collections/Collections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ const Collections = () => {
v.status === LOADING_STATE.UNLOADED ? (
<LoadCollectionDialog
collectionName={v.collection_name}
onLoad={async (collectionName: string) => {
onLoad={async () => {
openSnackBar(
successTrans('load', {
name: collectionTrans('collection'),
Expand All @@ -431,7 +431,7 @@ const Collections = () => {
) : (
<ReleaseCollectionDialog
collectionName={v.collection_name}
onRelease={async (collectionName: string) => {
onRelease={async () => {
openSnackBar(
successTrans('release', {
name: collectionTrans('collection'),
Expand Down Expand Up @@ -503,7 +503,7 @@ const Collections = () => {
disablePadding: false,
sortBy: 'rowCount',
label: (
<span className="flex-center">
<span className="flex-center with-max-content">
{collectionTrans('rowCount')}
<CustomToolTip title={collectionTrans('entityCountInfo')}>
<InfoIcon classes={{ root: classes.icon }} />
Expand Down Expand Up @@ -575,7 +575,7 @@ const Collections = () => {
align: 'left',
disablePadding: false,
label: (
<span className="flex-center">
<span className="flex-center with-max-content">
{collectionTrans('alias')}
<CustomToolTip title={collectionTrans('aliasInfo')}>
<InfoIcon classes={{ root: classes.icon }} />
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/partitions/Partitions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ const Partitions = () => {
align: 'left',
disablePadding: false,
label: (
<span className="flex-center">
<span className="flex-center with-max-content">
{t('rowCount')}
<CustomToolTip title={t('tooltip')}>
<InfoIcon classes={{ root: classes.icon }} />
Expand Down
3 changes: 3 additions & 0 deletions client/src/styles/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ fieldset {
align-items: center;
}

.with-max-content {
width: max-content;
}
.card-wrapper {
background-color: #fff;
border-radius: 4px;
Expand Down

0 comments on commit 7c7bfc4

Please sign in to comment.