Make panels resizable
This commit is contained in:
parent
a0412cf2b1
commit
ad9056d464
2 changed files with 34 additions and 12 deletions
|
|
@ -10,8 +10,11 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.21.1",
|
"axios": "^0.21.1",
|
||||||
"core-js": "^3.6.5",
|
"core-js": "^3.6.5",
|
||||||
|
"emoji-js": "^3.5.0",
|
||||||
"markdown-it": "^12.0.6",
|
"markdown-it": "^12.0.6",
|
||||||
"moment": "^2.29.1",
|
"moment": "^2.29.1",
|
||||||
|
"splitpanes": "^3.0.4",
|
||||||
|
"string-strip-html": "^8.3.0",
|
||||||
"vue": "^3.1.1",
|
"vue": "^3.1.1",
|
||||||
"vue-router": "^4.0.8",
|
"vue-router": "^4.0.8",
|
||||||
"vue3-markdown-it": "^1.0.9",
|
"vue3-markdown-it": "^1.0.9",
|
||||||
|
|
|
||||||
|
|
@ -1,35 +1,54 @@
|
||||||
<template>
|
<template>
|
||||||
<div id="home">
|
<splitpanes class="default-theme">
|
||||||
<Streams />
|
<pane size="10" min-size="5">
|
||||||
<Content />
|
<Streams />
|
||||||
<Rules />
|
</pane>
|
||||||
</div>
|
<pane size="55">
|
||||||
|
<Content />
|
||||||
|
</pane>
|
||||||
|
<pane size="35" min-size="15">
|
||||||
|
<Rules />
|
||||||
|
</pane>
|
||||||
|
<!-- <pane>
|
||||||
|
<iframe src="https://chat.hackersanddesigners.nl"></iframe>
|
||||||
|
</pane> -->
|
||||||
|
</splitpanes>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Streams from '../components/Streams'
|
import Streams from "../components/Streams";
|
||||||
import Content from '../components/Content'
|
import Content from "../components/Content";
|
||||||
import Rules from '../components/Rules'
|
import Rules from "../components/Rules";
|
||||||
|
import { Splitpanes, Pane } from "splitpanes";
|
||||||
|
import "splitpanes/dist/splitpanes.css";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Home',
|
name: "Home",
|
||||||
components: {
|
components: {
|
||||||
Streams,
|
Streams,
|
||||||
Content,
|
Content,
|
||||||
Rules,
|
Rules,
|
||||||
|
Splitpanes,
|
||||||
|
Pane,
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
#home {
|
#home {
|
||||||
position: relative;
|
position: relative;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.splitpanes--vertical .splitpanes__pane {
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
|
|
||||||
|
iframe {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Loading…
Reference in a new issue