From 9dce3a7d10df2e2f92f9d0aa52ac6ef31f25f755 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 16 Feb 2021 22:49:37 +0900 Subject: [PATCH] wip --- src/client/ui/chat/index.vue | 11 +++++- src/client/ui/chat/side.vue | 74 ++++++++++++++++++------------------ 2 files changed, 45 insertions(+), 40 deletions(-) diff --git a/src/client/ui/chat/index.vue b/src/client/ui/chat/index.vue index d1579038c..e8cda6274 100644 --- a/src/client/ui/chat/index.vue +++ b/src/client/ui/chat/index.vue @@ -121,8 +121,8 @@ - -
+ +
@@ -193,6 +193,7 @@ export default defineComponent({ featuredChannels: null, currentChannel: null, menuDef: sidebarDef, + sideViewOpening: false, instanceName, faLayerGroup, faBars, faBell, faHome, faCircle, faPencilAlt, faShareAlt, faSatelliteDish, faListUl, faSatellite, faCog, faSearch, faPlus, faStar, farStar, faAt, faLink, faEllipsisH, faGlobe, faComments, faEnvelope, }; @@ -564,6 +565,12 @@ export default defineComponent({ > .side { width: 350px; border-left: solid 1px var(--divider); + + &.widgets.sideViewOpening { + @media (max-width: 1400px) { + display: none; + } + } } } diff --git a/src/client/ui/chat/side.vue b/src/client/ui/chat/side.vue index 9b15c7284..0003158e5 100644 --- a/src/client/ui/chat/side.vue +++ b/src/client/ui/chat/side.vue @@ -1,13 +1,11 @@ @@ -64,6 +62,7 @@ export default defineComponent({ const { component, props } = resolve(path); this.component = component; this.props = props; + this.$emit('open'); }, back() { @@ -74,6 +73,7 @@ export default defineComponent({ this.path = null; this.component = null; this.props = {}; + this.$emit('close'); }, onContextmenu(e) { @@ -114,46 +114,44 @@ export default defineComponent({