Browse Source

feat: 适配移动端样式

tycoding 10 months ago
parent
commit
e039d90a8f

+ 1 - 1
langchat-ui-client/src/views/modules/mindmap/components/MindMap.vue

@@ -68,7 +68,7 @@
 <template>
   <div :class="genText == '' ? 'overflow-hidden' : ''" class="dot-bg w-full h-full relative">
     <div
-      :class="isMobile ? 'block pb-6' : 'absolute'"
+      :class="isMobile ? 'block' : 'absolute'"
       class="top-4 z-10 flex left-2 flex-wrap justify-center gap-2"
     >
       <n-button text @click="onZoomIn">

+ 1 - 1
langchat-ui-client/src/views/modules/mindmap/index.vue

@@ -56,7 +56,7 @@
 </script>
 
 <template>
-  <div :class="isMobile ? 'flex-col' : ''" class="w-full flex">
+  <div :class="isMobile ? 'flex-col' : ''" class="w-full flex h-full">
     <Sider :genText="genText" :loading="loading" @generate="onGenerate" @render="onRender" />
 
     <MindMap :genText="genText" :loading="loading" />