mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 06:03:22 +08:00
improve scrollable iframes
This commit is contained in:
parent
66e689afd2
commit
f27ead9b06
@ -9,7 +9,7 @@
|
||||
border-bottom-width: 0;
|
||||
color: $colorBlack;
|
||||
background-color: $colorWhite;
|
||||
max-height: 50rem;
|
||||
max-height: unquote("max(300px, 60vh)");
|
||||
overflow: auto;
|
||||
scroll-behavior: smooth;
|
||||
border: 1px solid rgba($colorBlack, 0.1);
|
||||
|
@ -4,9 +4,9 @@
|
||||
<div class="demo-frame__loader" />
|
||||
</div>
|
||||
<iframe
|
||||
v-resize.quiet
|
||||
class="demo-frame__iframe"
|
||||
v-resize.quiet="{ scrolling: true }"
|
||||
:src="`/demos/${name}?${query}`"
|
||||
style="background-color: transparent;"
|
||||
width="100%"
|
||||
height="0"
|
||||
frameborder="0"
|
||||
@ -71,6 +71,11 @@ export default {
|
||||
position: relative;
|
||||
min-height: 5rem;
|
||||
|
||||
&__iframe {
|
||||
background-color: transparent;
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
&.is-inline {
|
||||
border-radius: 0.75rem;
|
||||
background-color: rgba($colorBlack, 0.03);
|
||||
|
Loading…
Reference in New Issue
Block a user