@@ -104,7 +105,8 @@ const activeFileGroups = computed(() => { :name="file.name.toString()" >
- + +
@@ -141,7 +143,7 @@ const activeFileGroups = computed(() => { } .workspace { - //flex: 1; /* 占据剩余空间 */ + flex: 1; /* 占据剩余空间 */ overflow: hidden; /* 防止内容溢出 */ display: inline-block; } @@ -151,7 +153,8 @@ const activeFileGroups = computed(() => { height: 100%; /* 确保内容区域占满父容器 */ overflow-y: auto; /* 允许内容滚动 */ min-height: 100vh; /* 允许容器扩展 */ - display: inline-block; + //display: inline-block; max-width: 100%; } + \ No newline at end of file diff --git a/src/components/Toolbar.vue b/src/components/Toolbar.vue index 0d62f38..6a633bf 100644 --- a/src/components/Toolbar.vue +++ b/src/components/Toolbar.vue @@ -264,7 +264,18 @@ const prepareCapture = async () => { // 创建临时样式 const style = document.createElement('style'); - style.textContent = `.ql-container.ql-snow { border: none !important; }`; + style.textContent = ` + .ql-container.ql-snow { + border: none !important; + } + #main-container { + position: relative; + height: 100%; + overflow-y: auto; + min-height: 100vh; + display: inline-block; + max-width: 100%; +}`; document.head.appendChild(style); // 获取目标元素 diff --git a/src/components/YysRank.vue b/src/components/YysRank.vue new file mode 100644 index 0000000..d14390f --- /dev/null +++ b/src/components/YysRank.vue @@ -0,0 +1,267 @@ + + + \ No newline at end of file