Skip to content

Commit e25dc53

Browse files
committed
Language mapper UI modified
1 parent ee9da12 commit e25dc53

File tree

2 files changed

+33
-29
lines changed

2 files changed

+33
-29
lines changed

ui/src/components/DestinationStack/DestinationStack.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
}
209209
.language-mapper {
210210
//padding-top:20px;
211-
//margin-top: 20px;
211+
margin-top: 16px;
212212
//padding: 24px 30px;
213213
// height: 150px;
214214
border: 1px solid $color-brand-secondary-lightest;
@@ -251,7 +251,7 @@
251251
}
252252

253253
.language-title {
254-
margin-top: 10px;
254+
margin-top: 20px;
255255
//margin-left: 2px;
256256
}
257257
.info-lang {
@@ -280,4 +280,5 @@
280280
}
281281
.info-language-mapper {
282282
margin-bottom: 120px;
283+
margin-top: 16px;
283284
}

ui/src/components/DestinationStack/index.tsx

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -128,34 +128,37 @@ const DestinationStackComponent = ({
128128

129129
</div>
130130
</div>
131-
132-
<div className="col-12 info-lang">
133-
<div className="stackTitle language-title">Language configuration</div>
134-
<Tooltip
135-
content={`Define language mappings between Contentstack and ${newMigrationData?.legacy_cms?.selectedCms?.parent} for smooth content transfer. Each mapping aligns a WordPress source language with its Contentstack equivalent.`}
136-
position="right">
137-
<Icon className="language-title" icon="Information" version="v2" size="small"></Icon>
138-
</Tooltip>
139-
</div>
140-
<HelpText
141-
data-test-id="cs-paragraph-tag"
142-
className="contentMapWrapper-heading p1 regular help-text">
143-
Contentstack and {newMigrationData?.legacy_cms?.selectedCms?.parent} Languages Mapping
144-
</HelpText>
145-
146-
{newMigrationData?.destination_stack?.selectedStack?.value ? (
147-
<div className="language-mapper col-12 ">
148-
<LanguageMapper />
131+
<div className='row'>
132+
<div className='col-12'>
133+
<div className="info-lang">
134+
<div className="stackTitle language-title">Language configuration</div>
135+
<Tooltip
136+
content={`Define language mappings between Contentstack and ${newMigrationData?.legacy_cms?.selectedCms?.parent} for smooth content transfer. Each mapping aligns a WordPress source language with its Contentstack equivalent.`}
137+
position="right">
138+
<Icon className="language-title" icon="Information" version="v2" size="small"></Icon>
139+
</Tooltip>
140+
</div>
141+
<HelpText
142+
data-test-id="cs-paragraph-tag"
143+
className="contentMapWrapper-heading p1 regular help-text">
144+
Contentstack and {newMigrationData?.legacy_cms?.selectedCms?.parent} Languages Mapping
145+
</HelpText>
146+
147+
{newMigrationData?.destination_stack?.selectedStack?.value ? (
148+
<div className="language-mapper">
149+
<LanguageMapper />
150+
</div>
151+
) : (
152+
<Info
153+
className="info-language-mapper info-tag"
154+
icon={<Icon icon="Information" version="v2" size="small"></Icon>}
155+
version="v2"
156+
content="Please select the stack to proceed with language mapping"
157+
type="light"
158+
/>
159+
)}
149160
</div>
150-
) : (
151-
<Info
152-
className="info-language-mapper col-12 info-tag"
153-
icon={<Icon icon="Information" version="v2" size="small"></Icon>}
154-
version="v2"
155-
content="Please select the stack to proceed with language mapping"
156-
type="light"
157-
/>
158-
)}
161+
</div>
159162
</div>
160163
)}
161164
</>

0 commit comments

Comments
 (0)