aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-05-14 14:23:53 +0200
committerlonkaars <loek@pipeframe.xyz>2021-05-14 14:23:53 +0200
commit178cf4cd6bd455c59d7cc98d293d34cd03b08ffb (patch)
treebb3cfea4e3458804d8b9e7f3ab5017558a798f94
parent212d37ed1947a7d9dddd66d206cafcdc063ee37f (diff)
video scales properly now
-rw-r--r--pages/editor.tsx5
-rw-r--r--styles/editor.css23
2 files changed, 27 insertions, 1 deletions
diff --git a/pages/editor.tsx b/pages/editor.tsx
index ee41a27..c550eac 100644
--- a/pages/editor.tsx
+++ b/pages/editor.tsx
@@ -21,7 +21,10 @@ export default function Index() {
</AppBar>
<div className='settings'></div>
<div className='viewer'>
- <div className='player'></div>
+ <div className='player posrel'>
+ <div className='outer posabs abscenter'>
+ </div>
+ </div>
<div className='controls'>
<div className='posabs abscenter'>
<Fab size='small' children={<SkipPreviousRoundedIcon />} />
diff --git a/styles/editor.css b/styles/editor.css
index 5b9c7b6..a25108d 100644
--- a/styles/editor.css
+++ b/styles/editor.css
@@ -8,6 +8,7 @@
display: grid;
grid-template-columns: 240px 1fr;
grid-template-rows: auto 1fr 210px;
+ overflow: hidden;
}
.appGrid header {
@@ -44,6 +45,28 @@
grid-template-rows: 1fr 80px;
}
+.appGrid .viewer .player {
+ margin: 16px;
+ margin-bottom: 0px;
+}
+
+.appGrid .viewer .player .outer {
+ border: 8px solid var(--piss);
+ border-radius: 8px;
+}
+
+.appGrid .viewer .player {
+ --aspect-ratio-h: 16;
+ --aspect-ratio-v: 9;
+}
+
+.appGrid .viewer .player .outer {
+ aspect-ratio: 16 / 9;
+ max-width: 100%;
+ max-height: 100%;
+ width: 100%;
+}
+
.appGrid .viewer .controls {
position: relative;
}