Skip to content

Commit

Permalink
Merge pull request #766 from db-ui/refactor-added-iframe-resizer-script
Browse files Browse the repository at this point in the history
refactor: added iframe resizer script
  • Loading branch information
mfranzke authored Mar 29, 2023
2 parents 0f1c2c3 + 7b5fc5c commit e502e09
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
21 changes: 21 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions showcases/patternhub/components/default-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import '@db-ui/core/dist/css/db-ui-core.vars.css';
import { useRouter } from 'next/router';
import { DbMainnavigationDataType } from '@db-ui/elements/dist/types/components/db-mainnavigation/db-mainnavigation-type';
import { useEffect, useState } from 'react';
// Using this one for adapting our iframes on the Marketingportal
import 'iframe-resizer/js/iframeResizer.contentWindow.min.js';

const getRoutesWithCurrent = (
routes: DbMainnavigationDataType[],
Expand Down
1 change: 1 addition & 0 deletions showcases/patternhub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"@types/react-dom": "18.0.11",
"eslint": "8.37.0",
"eslint-config-next": "13.2.4",
"iframe-resizer": "^4.3.6",
"open-cli": "^7.2.0",
"sass": "^1.60.0",
"typescript": "4.9.5"
Expand Down

0 comments on commit e502e09

Please sign in to comment.