Skip to content

Commit e502e09

Browse files
authored
Merge pull request #766 from db-ui/refactor-added-iframe-resizer-script
refactor: added iframe resizer script
2 parents 0f1c2c3 + 7b5fc5c commit e502e09

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

package-lock.json

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

showcases/patternhub/components/default-page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import '@db-ui/core/dist/css/db-ui-core.vars.css';
1313
import { useRouter } from 'next/router';
1414
import { DbMainnavigationDataType } from '@db-ui/elements/dist/types/components/db-mainnavigation/db-mainnavigation-type';
1515
import { useEffect, useState } from 'react';
16+
// Using this one for adapting our iframes on the Marketingportal
17+
import 'iframe-resizer/js/iframeResizer.contentWindow.min.js';
1618

1719
const getRoutesWithCurrent = (
1820
routes: DbMainnavigationDataType[],

showcases/patternhub/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"@types/react-dom": "18.0.11",
3434
"eslint": "8.37.0",
3535
"eslint-config-next": "13.2.4",
36+
"iframe-resizer": "^4.3.6",
3637
"open-cli": "^7.2.0",
3738
"sass": "^1.60.0",
3839
"typescript": "4.9.5"

0 commit comments

Comments
 (0)