Skip to content

Commit

Permalink
fix: pdf drag and drop problems + review
Browse files Browse the repository at this point in the history
  • Loading branch information
raaymax committed Feb 19, 2024
1 parent 1093ede commit 73109f6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ watch(fields.mapId, initMap);
}
.CoreGoogleMaps.beingEdited .mask {
pointer-events: all;
pointer-events: auto;
position: absolute;
top: 0;
left: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ function handleLoad() {
height: 80vh;
}
.CoreIFrame.beingEdited:not(.selected) iframe {
pointer-events: none;
}
.CoreIFrame iframe {
width: 100%;
height: 100%;
Expand All @@ -81,7 +85,7 @@ function handleLoad() {
}
.CoreIFrame.beingEdited .mask {
pointer-events: all;
pointer-events: auto;
position: absolute;
top: 0;
left: 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<div class="CorePDF">
<object class="pdf" :data="fields.source.value" type="application/pdf">
<object class="pdf" :data="fields.source.value" :key="fields.source.value" type="application/pdf">
<p>
You don't have a PDF plugin, but you can
You're not authorised to embed in the browser or you don't have PDF plugin
<a :href="fields.source.value">download the PDF file. </a>
</p>
</object>
Expand Down Expand Up @@ -48,6 +48,10 @@ const fields = inject(injectionKeys.evaluatedFields);
height: 80vh;
}
.CorePDF.beingEdited:not(.selected) object {
pointer-events: none;
}
.CorePDF .pdf {
width: 100%;
height: 100%;
Expand All @@ -61,7 +65,7 @@ const fields = inject(injectionKeys.evaluatedFields);
}
.CorePDF.beingEdited .mask {
pointer-events: all;
pointer-events: auto;
position: absolute;
top: 0;
left: 0;
Expand Down

0 comments on commit 73109f6

Please sign in to comment.