Skip to content
Snippets Groups Projects
Commit 2bb8f731 authored by Johannes Mey's avatar Johannes Mey
Browse files

improve dashboard

parent 5204188a
No related branches found
No related tags found
1 merge request!1festival updatesfestival updatesfestival updatesfestival updatesfestival
Pipeline #14771 passed
...@@ -8,15 +8,9 @@ ...@@ -8,15 +8,9 @@
pointer-events: none; pointer-events: none;
} }
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}
.App-header { .App-header {
background-color: #282c34; background-color: #282c34;
min-height: 40px; /*100vmin*/ min-height: 40px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
...@@ -25,39 +19,34 @@ ...@@ -25,39 +19,34 @@
color: white; color: white;
} }
.ContextContainer {
width: 100vw;
overflow-x:scroll;
white-space: nowrap;
direction:rtl;
}
.CurrentContext { .CurrentContext {
height: 50vh; height: 50vh;
width: 100vw; width: 100vw;
object-fit: contain; object-fit: contain;
/*object-fit: scale-down;*/ /*object-fit: scale-down;*/
object-position: right; object-position: center;
} }
.CurrentAst { .AstContainer {
height: 50vh;
width: 100vw; width: 100vw;
object-fit: cover; overflow-x:scroll;
object-position: right; white-space: nowrap;
direction:rtl;
} }
.AstInTimeline { .CurrentAst {
max-width: 100%; height: 50vh;
object-fit: cover;
object-position: bottom right;
} }
.App-link { .App-link {
color: #61dafb; color: #61dafb;
} }
.MG-Timeline {
max-width: 4000px !important;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
...@@ -85,7 +85,7 @@ function App() { ...@@ -85,7 +85,7 @@ function App() {
function CurrentASTState(props) { function CurrentASTState(props) {
return ( return (
<div className="curent-state"> <div className="AstContainer">
<img className="CurrentAst" src={`data:image/svg+xml;utf8,${encodeURIComponent(props.diagram)}`} alt={props.label} /> <img className="CurrentAst" src={`data:image/svg+xml;utf8,${encodeURIComponent(props.diagram)}`} alt={props.label} />
</div> </div>
) )
...@@ -93,7 +93,7 @@ function CurrentASTState(props) { ...@@ -93,7 +93,7 @@ function CurrentASTState(props) {
function CurrentContextState(props) { function CurrentContextState(props) {
return ( return (
<div className="curent-state"> <div className="ContextContainer">
<img className="CurrentContext" src={`data:image/svg+xml;utf8,${encodeURIComponent(props.diagram)}`} alt={props.label} /> <img className="CurrentContext" src={`data:image/svg+xml;utf8,${encodeURIComponent(props.diagram)}`} alt={props.label} />
</div> </div>
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment