Skip to content

Commit 5187a3e

Browse files
committed
Fix 3W iframe size
1 parent d8b1ffc commit 5187a3e

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

src/views/DrefApplicationForm/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
isTruthyString,
1919
} from '@togglecorp/fujs';
2020
import {
21-
DownloadTwoLineIcon,
21+
DownloadTwoLineIcon, ShareLineIcon,
2222
} from '@ifrc-go/icons';
2323

2424
import { type FieldReportItem as FieldReportSearchItem } from '#components/domain/FieldReportSearchSelectInput';
@@ -516,13 +516,16 @@ export function Component() {
516516
<Button
517517
name={undefined}
518518
onClick={handleShareClick}
519+
variant="secondary"
520+
icons={<ShareLineIcon />}
519521
>
520522
{strings.formShareButtonLabel}
521523
</Button>
522524
<Button
523525
name={undefined}
524526
onClick={handleExportClick}
525527
icons={<DownloadTwoLineIcon />}
528+
variant="secondary"
526529
>
527530
{strings.formExportLabel}
528531
</Button>

src/views/DrefFinalReportForm/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
isTruthyString,
1919
} from '@togglecorp/fujs';
2020
import {
21-
DownloadTwoLineIcon,
21+
DownloadTwoLineIcon, ShareLineIcon,
2222
} from '@ifrc-go/icons';
2323

2424
import Page from '#components/Page';
@@ -407,14 +407,16 @@ export function Component() {
407407
name={undefined}
408408
onClick={setShowShareModalTrue}
409409
disabled={isNotDefined(drefId)}
410+
variant="secondary"
411+
icons={<ShareLineIcon />}
410412
>
411413
{strings.formShareButtonLabel}
412414
</Button>
413415
<Button
414416
name={undefined}
415417
onClick={setShowExportModalTrue}
416418
icons={<DownloadTwoLineIcon />}
417-
disabled={isNotDefined(drefId)}
419+
variant="secondary"
418420
>
419421
{strings.formExportLabel}
420422
</Button>

src/views/DrefOperationalUpdateForm/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
import {
1212
ErrorWarningFillIcon,
1313
DownloadTwoLineIcon,
14+
ShareLineIcon,
1415
} from '@ifrc-go/icons';
1516
import {
1617
useForm,
@@ -628,13 +629,16 @@ export function Component() {
628629
name={undefined}
629630
onClick={handleShareClick}
630631
disabled={isNotDefined(drefId)}
632+
icons={<ShareLineIcon />}
633+
variant="secondary"
631634
>
632635
{strings.formShareButtonLabel}
633636
</Button>
634637
<Button
635638
name={undefined}
636639
onClick={handleExportClick}
637640
icons={<DownloadTwoLineIcon />}
641+
variant="secondary"
638642
>
639643
{strings.formExportLabel}
640644
</Button>

src/views/GlobalThreeW/styles.module.css

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,9 @@
3939
}
4040

4141
.iframe-content {
42-
display: flex;
43-
align-items: center;
44-
justify-content: center;
45-
4642
.ppp-iframe {
4743
border: none;
48-
/* background-color: var(--go-ui-color-gray-30); */
49-
width: 75%;
44+
width: 100%;
5045
height: 54rem;
5146
}
5247
}

0 commit comments

Comments
 (0)