File tree Expand file tree Collapse file tree
frontend/src/views/chat/chat-block Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ const { copy } = useClipboard({ legacy: true })
5252const loading = ref <boolean >(false )
5353const { t } = useI18n ()
5454const addViewRef = ref (null )
55- const emits = defineEmits ([' exitFullScreen' ])
55+ const emits = defineEmits ([' exitFullScreen' , ' enterFullScreen ' ])
5656
5757const dataObject = computed <{
5858 fields: Array <string >
@@ -199,7 +199,15 @@ function reloadChart() {
199199
200200const dialogVisible = ref (false )
201201
202+ function setHiddenSidebarBtnZIndex(value : string ) {
203+ const sidebarBtns = document .querySelectorAll (' .hidden-sidebar-btn' )
204+ sidebarBtns .forEach ((btn ) => {
205+ ;(btn as HTMLElement ).style .zIndex = value
206+ })
207+ }
208+
202209function openFullScreen() {
210+ setHiddenSidebarBtnZIndex (' 0' )
203211 dialogVisible .value = true
204212}
205213
@@ -209,6 +217,7 @@ function closeFullScreen() {
209217
210218function onExitFullScreen() {
211219 dialogVisible .value = false
220+ setHiddenSidebarBtnZIndex (' 11' )
212221}
213222
214223const sqlShow = ref (false )
You can’t perform that action at this time.
0 commit comments