Skip to content

Commit 0a4d58d

Browse files
committed
Merge branch 'fix/create-clone-ui' into 'master'
fix(ui): fix CreateClone form layout and deletion protection label Closes #703 See merge request postgres-ai/database-lab!1134
2 parents 2f6136b + 140fa92 commit 0a4d58d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

ui/packages/shared/pages/Clone/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ export const Clone = observer((props: Props) => {
651651
</p>
652652
<div style={{ marginTop: '8px', marginBottom: '16px' }}>
653653
<Select
654-
label="Deletion protection"
654+
label={"Deletion\u00a0protection"}
655655
items={
656656
clone.protected && clone.protectedTillDate
657657
? [
@@ -663,7 +663,7 @@ export const Clone = observer((props: Props) => {
663663
value={getCurrentProtectionValue()}
664664
onChange={handleProtectionChange}
665665
disabled={isDisabledControls}
666-
style={{ minWidth: 100 }}
666+
style={{ minWidth: 200 }}
667667
/>
668668
{isUpdatingClone && <Spinner size="sm" className={classes.spinner} />}
669669
</div>

ui/packages/shared/pages/CreateClone/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ export const CreateClone = observer((props: Props) => {
393393
<h2 className={styles.title}>Clone protection</h2>
394394

395395
<Select
396+
fullWidth
396397
label="Deletion protection"
397398
items={(() => {
398399
const maxDurationMinutes = stores.main.instance?.state?.cloning?.protectionMaxDurationMinutes ?? 0
@@ -423,7 +424,6 @@ export const CreateClone = observer((props: Props) => {
423424
formik.setFieldValue('protectionDurationMinutes', e.target.value)
424425
}
425426
disabled={isCreatingClone}
426-
style={{ minWidth: 100 }}
427427
/>
428428

429429
<p className={styles.remark}>

ui/packages/shared/pages/CreateClone/styles.module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
.form {
1818
flex: 1 1 0;
19+
min-width: 0;
1920
}
2021

2122
.snippetContainer {

0 commit comments

Comments
 (0)