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({