Skip to content

Commit

Permalink
style: 修复报告详情展示&代码编辑器测试bug修复&等ui样式
Browse files Browse the repository at this point in the history
  • Loading branch information
fit2cloudwxx authored and liuruibin committed May 9, 2024
1 parent 10a9345 commit 58a069d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
10 changes: 6 additions & 4 deletions frontend/src/components/pure/ms-code-editor/index.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<template>
<div ref="fullRef" class="flex flex-col rounded-[var(--border-radius-small)] bg-[var(--color-fill-1)] p-[12px]">
<div
ref="fullRef"
class="flex flex-col rounded-[var(--border-radius-small)] bg-[var(--color-fill-1)] p-[12px]"
:class="[!isAdaptive ? 'h-full' : '']"
>
<div v-if="showTitleLine" class="mb-[8px] flex items-center justify-between">
<div class="flex flex-wrap gap-[4px]">
<a-select
Expand Down Expand Up @@ -391,11 +395,9 @@

<style lang="less" scoped>
.ms-code-editor {
width: 100%;
width: v-bind(width);
height: v-bind(codeheight);
@apply z-10;
// height: 100vh;
// &.MS-text[data-mode-id='plaintext'] {
// :deep(.mtk1) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
action-on-node-click="expand"
disabled-title-tooltip
block-node
hide-switcher
@select="(selectedKeys, node) => handleStepSelect(selectedKeys, node as ScenarioItemType)"
@expand="handleStepExpand"
@more-actions-close="() => setFocusNodeKey('')"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<template #title="nodeData">
<div :id="nodeData.id" class="inline-flex w-full gap-[8px]">
<div class="one-line-text w-full text-[var(--color-text-1)]">{{ nodeData.name }}</div>
<div class="ml-[4px] text-[var(--color-text-brand)]">{{ nodeData.count || 0 }}</div>
<div class="ms-tree-node-count ml-[4px] text-[var(--color-text-brand)]">{{ nodeData.count || 0 }}</div>
</div>
</template>
<template v-if="!props.readOnly" #extra="nodeData">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<template #left>
<a-popover title="" position="bottom">
<div class="show-table-top-title">
<div class="one-line-text max-h-[32px] max-w-[116px] text-[var(--color-text-1)]">
<div class="one-line-text max-h-[32px] max-w-[300px] text-[var(--color-text-1)]">
{{ moduleNamePath }}
</div>
<span class="text-[var(--color-text-4)]"> ({{ props.modulesCount[props.activeFolder] || 0 }})</span>
Expand Down

0 comments on commit 58a069d

Please sign in to comment.