mirror of
https://github.com/certd/certd.git
synced 2026-04-30 17:37:24 +08:00
chore: 手机端流水线历史记录默认收起
This commit is contained in:
@@ -308,6 +308,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="tsx">
|
<script lang="tsx">
|
||||||
|
import { usePreferences } from "/@/vben/preferences";
|
||||||
import { computed, defineComponent, onMounted, onUnmounted, provide, ref, Ref, watch } from "vue";
|
import { computed, defineComponent, onMounted, onUnmounted, provide, ref, Ref, watch } from "vue";
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
import PiTaskForm from "./component/task-form/index.vue";
|
import PiTaskForm from "./component/task-form/index.vue";
|
||||||
@@ -920,7 +921,9 @@ export default defineComponent({
|
|||||||
console.log("currentPipeline", pipeline);
|
console.log("currentPipeline", pipeline);
|
||||||
};
|
};
|
||||||
|
|
||||||
const logsCollapse = ref(false);
|
// 获取浏览器宽度
|
||||||
|
const viewWidth = window.innerWidth;
|
||||||
|
const logsCollapse = ref(viewWidth < 768 ? true : false);
|
||||||
|
|
||||||
function toggleLogsCollapse() {
|
function toggleLogsCollapse() {
|
||||||
logsCollapse.value = !logsCollapse.value;
|
logsCollapse.value = !logsCollapse.value;
|
||||||
@@ -1062,8 +1065,9 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
.layout-right {
|
.layout-right {
|
||||||
width: 354px;
|
width: 364px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
max-width: 90vw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1287,9 +1291,8 @@ export default defineComponent({
|
|||||||
|
|
||||||
.layout-right {
|
.layout-right {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&.collapsed {
|
&.collapsed {
|
||||||
margin-right: -354px;
|
margin-right: max(-364px, -90vw);
|
||||||
}
|
}
|
||||||
|
|
||||||
.collapse-toggle {
|
.collapse-toggle {
|
||||||
|
|||||||
Reference in New Issue
Block a user