Skip to content

Commit

Permalink
fix: input box misaligned in add-vertices page (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanganjuan authored Mar 31, 2022
1 parent ace7a07 commit 6efffd1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -764,14 +764,14 @@
}

& > div:first-child {
flex-basis: 25%;
flex-basis: 35%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

& > div:last-child {
flex-basis: 75%;
flex-basis: 65%;
}

&-disabled {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ const DataAnalyzeInfoDrawer: React.FC = observer(() => {
<Drawer
title={
isEdit
? t('addition.dtaAnalyzeInfoDrawer.edit-details')
: t('addition.dtaAnalyzeInfoDrawer.data-details')
? t('addition.dataAnalyzeInfoDrawer.edit-details')
: t('addition.dataAnalyzeInfoDrawer.data-details')
}
visible={dataAnalyzeStore.isShowGraphInfo}
onClose={handleDrawerClose}
Expand Down Expand Up @@ -214,7 +214,13 @@ const DataAnalyzeInfoDrawer: React.FC = observer(() => {
{[...dataAnalyzeStore.editedSelectedGraphDataProperties.primary].map(
([key, value], primaryKeyIndex) => (
<div className={graphInfoItemClassName} key={key}>
<div>
<div
title={`${key}(${
dataAnalyzeStore.graphInfoDataSet === 'node'
? t('addition.common.primary-key')
: t('addition.common.distinguishing-key')
})${`${primaryKeyIndex + 1}`}`}
>
{key}(
{dataAnalyzeStore.graphInfoDataSet === 'node'
? t('addition.common.primary-key')
Expand All @@ -236,7 +242,7 @@ const DataAnalyzeInfoDrawer: React.FC = observer(() => {
marginTop: !isEdit ? 0 : nonNullableIndex === 0 ? 8 : 32
}}
>
<div>{key}: </div>
<div title={key}>{key}: </div>
{!isEdit ? (
<div>{convertArrayToString(value)}</div>
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const DataAnalyzeAddNode: React.FC = observer(() => {
{t('addition.common.add')}
</Button>,
<Button size="medium" style={{ width: 60 }} onClick={handleDrawerClose}>
{t('addition.common.vertex-type-select-desc')}
{t('addition.common.cancel')}
</Button>
]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ const NewVertexType: React.FC = observer(() => {
'addition.common.select-primary-key-property-placeholder'
)}
selectorName={t(
'addition.message.select-association-key-property-placeholde'
'addition.message.select-association-key-property-placeholder'
)}
size="medium"
showSearch={false}
Expand Down

0 comments on commit 6efffd1

Please sign in to comment.