Skip to content

Commit

Permalink
Update [id].tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
joyponader authored Sep 3, 2024
1 parent e10f7a0 commit db273e1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pages/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ window.addEventListener('message', (message) => {
}
if(message.data.message === 'sendLetterEntryHeightToParent'
) {
const heightPx = \`\${parseInt(message.data.height, 10) + 100}px\`;
const heightPx = \`\${message.data.height}px\`;
document.getElementById('briefeintragung-iframe')?.setAttribute('height', heightPx)
}
if(message.data.message === 'sendLetterEntryRegistrationSuccessToParent'
Expand All @@ -69,14 +69,8 @@ window.addEventListener('message', (message) => {
}
#briefeintragung-iframe {
width: 100%;
height: 1200px;
border: none;
}
@media screen and (min-width: 500px) {
#briefeintragung-iframe{
height: 1150px;
}
}
</style>
`;

Expand Down

0 comments on commit db273e1

Please sign in to comment.