refactor: move stuff from profile to within the crop popup itself
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
This commit is contained in:
parent
181fcd04db
commit
d9c6faa6ab
2 changed files with 29 additions and 34 deletions
|
@ -24,14 +24,12 @@
|
|||
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="isCropPopupVisible" id="crop-popup-container">
|
||||
<CropPopup
|
||||
:imageSrc="cropImageSrc"
|
||||
:onCrop="handleCrop"
|
||||
:onClose="closeCropPopup"
|
||||
id="crop-popup-preview"
|
||||
/>
|
||||
</div>
|
||||
<CropPopup
|
||||
v-if="isCropPopupVisible"
|
||||
:imageSrc="cropImageSrc"
|
||||
:onCrop="handleCrop"
|
||||
:onClose="closeCropPopup"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
|
@ -168,21 +166,4 @@ function closeCropPopup() {
|
|||
#profile-popup {
|
||||
margin-left: 2dvw;
|
||||
}
|
||||
|
||||
#crop-popup-container {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 10;
|
||||
background: rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
#crop-popup-preview {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue