Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
build: remove g6 chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
hibig committed Aug 28, 2023
1 parent 3226d34 commit b0231cc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@
<revisionLogs
v-if="initialStatus === RevisionStatus.Running"
:show="show"
:fullscreen="fullscreen"
:revision-id="get(revisionData, 'id')"
></revisionLogs>
<div v-else class="content-wrap">
<div v-else class="content-wrap" :class="{ fullscreen: fullscreen }">
{{ get(revisionData, 'statusMessage') || '' }}
</div>
</div>
Expand Down Expand Up @@ -217,8 +218,8 @@
};
const handleBeforeClose = () => {
showTimer.value = false;
fullscreen.value = false;
emit('update:show', false);
// revisionData.value = {};
};
</script>

Expand All @@ -232,15 +233,18 @@
.logs-content {
.content-wrap {
// max-height: 360px;
height: calc(100vh - 254px);
min-height: 200px;
max-height: 360px;
padding: 0 10px;
overflow-y: auto;
white-space: pre-wrap;
background-color: var(--color-fill-2);
border: 1px solid var(--color-border-2);
border-radius: var(--border-radius-small);
&.fullscreen {
max-height: calc(100vh - 254px);
}
}
.label {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="logs-wrap">
<div ref="scroller" class="log-text">
<div ref="scroller" class="log-text" :class="{ fullscreen: fullscreen }">
{{ content }}
</div>
</div>
Expand Down Expand Up @@ -31,6 +31,10 @@
default() {
return false;
}
},
fullscreen: {
type: Boolean,
default: false
}
});
const instanceInfo = inject(
Expand All @@ -49,14 +53,12 @@
const scrollerContainer = scroller.value || {};
const { scrollHeight, clientHeight, scrollTop } = scrollerContainer;
if (scrollHeight > clientHeight + scrollTop) {
scroller.value.scrollTop += 1;
// scroller.value.scrollTop = scrollHeight - clientHeight;
scroller.value.scrollTop += 5;
window.requestAnimationFrame(updateScrollerPosition);
}
};
const updateContent = (newVal) => {
// content.value = `${content.value}${newVal}`;
content.value = `${newVal}`;
window.requestAnimationFrame(updateScrollerPosition);
};
Expand Down Expand Up @@ -111,6 +113,10 @@
background-color: var(--color-fill-2);
border: 1px solid var(--color-border-2);
border-radius: var(--border-radius-small);
&.fullscreen {
max-height: calc(100vh - 254px);
}
}
}
</style>

0 comments on commit b0231cc

Please sign in to comment.