Commit 23bf2f7e authored by ZeMKI's avatar ZeMKI
Browse files

Bugfix Safari screenshot on Macos

- svg was causing the screenshot not to be saved.
parent 6c06c2af
<template>
<section>
<!-- Modal -->
<div :class="'modal'+currentsorting +' opacity-0 pointer-events-none fixed w-full h-full top-0 left-0 flex items-center justify-center z-50'" v-if="currentsorting === sorting">
<div :class="'modal'+currentsorting +' opacity-0 pointer-events-none fixed w-full h-full top-0 left-0 flex items-center justify-center z-50 '" v-if="currentsorting === sorting">
<div class="absolute w-full h-full bg-gray-900 opacity-50" @click.prevent="togglePersonModal()"></div>
<div class="modal-container bg-white w-1/3 mx-auto rounded shadow-lg z-50 overflow-y-auto">
<div @click.prevent="togglePersonModal()" class="absolute top-0 right-0 cursor-pointer flex flex-col items-center mt-4 mr-4 text-white text-sm z-50">
<svg class="fill-current text-white" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18">
<path d="M14.53 4.53l-1.06-1.06L9 7.94 4.53 3.47 3.47 4.53 7.94 9l-4.47 4.47 1.06 1.06L9 10.06l4.47 4.47 1.06-1.06L10.06 9z"></path>
</svg>
X
<span class="text-sm">(Esc)</span>
</div>
......@@ -19,9 +17,7 @@
<div class="flex justify-between items-center pb-3">
<p class="text-2xl font-bold">{{trans('Create a Person')}}</p>
<div @click.prevent="togglePersonModal()" class="cursor-pointer z-50">
<svg class="fill-current text-black" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18">
<path d="M14.53 4.53l-1.06-1.06L9 7.94 4.53 3.47 3.47 4.53 7.94 9l-4.47 4.47 1.06 1.06L9 10.06l4.47 4.47 1.06-1.06L10.06 9z"></path>
</svg>
X
</div>
</div>
......@@ -257,7 +253,6 @@
self.newtoken.file.dirname = this.productionUrl + self.newtoken.file.dirname;
const tokens = this.openStorage();
console.log(tokens);
if (tokens && tokens.length > 0)
{
self.tokens = tokens;
......@@ -668,14 +663,12 @@
,
getbounds: function()
{
console.log('in get bounds');
let self = this;
setTimeout(function()
{
if (self.currentsorting == 1)
{
console.log('current sorting 1');
self.parentPos = document.querySelector('.sorting-container' + self.currentsorting).getBoundingClientRect();
self.bounds.top = self.getElementGlobalCoordinates(document.querySelector('.round-sorting' + self.circles)).top;
self.bounds.left = self.getElementGlobalCoordinates(document.querySelector('.round-sorting' + self.circles)).left;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment