Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6b08a88

Browse files
authored
fix: column icon css for partition keys (pinterest#987)
1 parent 0ae4659 commit 6b08a88

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

querybook/webapp/components/DataTableViewMini/ColumnIcon.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ export const ColumnIcon: React.FunctionComponent<IColumnIconProps> = ({
2222
};
2323
if (tooltip) {
2424
spanProps['aria-label'] = tooltip;
25-
spanProps['data-balloon-pos'] = 'up';
25+
spanProps['data-balloon-pos'] = 'right';
2626
}
2727

2828
return (
2929
<span {...spanProps}>
30-
<Icon name={name} size={16} fill={fill} />
30+
<Icon name={name} size={14} fill={fill} />
3131
</span>
3232
);
3333
};

querybook/webapp/components/DataTableViewMini/TablePanelView.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import { DataTableTags } from 'components/DataTableTags/DataTableTags';
66
import { useDataTable } from 'hooks/redux/useDataTable';
77
import { generateFormattedDate } from 'lib/utils/datetime';
88
import { getHumanReadableByteSize } from 'lib/utils/number';
9+
import { AllLucideIconNames } from 'ui/Icon/LucideIcons';
910
import { Loader } from 'ui/Loader/Loader';
1011

11-
import { PanelSection, SubPanelSection } from './PanelSection';
12-
import { AllLucideIconNames } from 'ui/Icon/LucideIcons';
1312
import { ColumnIcon } from './ColumnIcon';
13+
import { PanelSection, SubPanelSection } from './PanelSection';
1414

1515
interface ITablePanelViewProps {
1616
tableId: number;
@@ -120,6 +120,7 @@ const StyledColumnRow = styled.div<IStyledColumnRowProps>`
120120
margin-bottom: 4px;
121121
display: flex;
122122
flex-direction: row;
123+
align-items: center;
123124
124125
.column-row-name {
125126
user-select: none;
@@ -170,7 +171,7 @@ const ColumnRow: React.FunctionComponent<{
170171
{icon && (
171172
<ColumnIcon
172173
name={icon}
173-
tooltip={'Partitioned Column'}
174+
tooltip={'Partition key'}
174175
fill={false}
175176
/>
176177
)}

0 commit comments

Comments
 (0)