Commit de12b338 authored by MaxSol1's avatar MaxSol1
Browse files

viewer and video player moving bug

parent e6158788
......@@ -86,7 +86,9 @@ export function Editor({slug, selectedElementId}) {
meerkat.getDashboard(slug).then(async d => {
dashboardDispatch({ type: 'setDashboard', dashboard: d });
});
}, [slug]);
console.log(dashboard)
if(dashboard === null) {
return <div class="loading center subtle">Loading dashboard</div>
......
......@@ -30,7 +30,7 @@ export function Viewer({slug, dashboardReducer}) {
const left = `${element.rect.x}%`;
const top = `${element.rect.y}%`;
const width = `${element.rect.w}%`;
const height = `${(element.rect.h / dashboard.height - 11)}%`;
const height = `${element.rect.h}%`;
console.log(height)
const rotation = element.rotation ? `rotate(${element.rotation}rad)` : `rotate(0rad)`;
......
......@@ -437,9 +437,9 @@ div.home .filter-wrap #filter {
div.dashboard-wrap {
margin: 20px;
margin-left: 400px;
min-height: calc(100vh - 40px); /* margin * 2 */
/* min-height: calc(100vh - 40px); margin * 2 */
display: flex;
flex-direction: column;
/* flex-direction: column; */
/* margin: auto; */
}
......@@ -451,22 +451,21 @@ div.dashboard-wrap {
display: flex;
justify-content: center;
align-items: center;
}
.dashboard.view-only {
/* flex-direction: column; */
position: relative;
flex-grow: 1;
min-height: calc(100vh - 20px);
/* min-height: calc(100vh - 20px); */
display: flex;
justify-content: center;
align-items: center;
}
#dashboard-dimensions {
object-fit: contain;
min-height: 100vh;
/* min-height: 100vh; */
}
/* .audio-container {
......
Markdown is supported
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