Skip to content

Commit

Permalink
fix: iframe layout height
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Oct 4, 2021
1 parent 7c39983 commit efae2e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/client/layouts/iframe-left.vue
Expand Up @@ -13,8 +13,8 @@ const url = ref(props.url)

<template>
<div class="grid grid-cols-2 w-full h-full">
<div>
<iframe id="frame" class="w-full h-full" :src="url"> </iframe>
<div class="h-full">
<iframe id="frame" class="w-full h-full" :src="url"></iframe>
</div>
<div class="slidev-layout default" :class="props.class">
<slot />
Expand Down
2 changes: 1 addition & 1 deletion packages/client/layouts/iframe-right.vue
Expand Up @@ -16,7 +16,7 @@ const url = ref(props.url)
<div class="slidev-layout default" :class="props.class">
<slot />
</div>
<div>
<div class="h-full">
<iframe id="frame" class="w-full h-full" :src="url"> </iframe>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/client/layouts/iframe.vue
Expand Up @@ -10,7 +10,7 @@ const url = ref(props.url)

<template>
<div class="h-full w-full">
<div>
<div class="w-full h-full">
<iframe id="frame" class="w-full h-full" :src="url"> </iframe>
</div>
</div>
Expand Down

0 comments on commit efae2e8

Please sign in to comment.