Skip to content

Commit 3f3c19e

Browse files
committed
Merge branch 'sunxianfu' into 'dev'
feat: 1.增加banner主题切换 2.优化表格滚动 3. 优化图标 See merge request cooperation/vscode-rt-smart!7
2 parents 076c91c + 8ea6046 commit 3f3c19e

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

src/dock.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ class CmdTreeDataProvider implements vscode.TreeDataProvider<vscode.TreeItem> {
4848
};
4949

5050
let analyze = new vscode.TreeItem("Analyze", vscode.TreeItemCollapsibleState.None);
51-
analyze.iconPath = new vscode.ThemeIcon("file");
51+
analyze.iconPath = new vscode.ThemeIcon("search-fuzzy");
5252
analyze.label = "Analyze";
5353
analyze.command = {
5454
command: "extension.showAnalyze",
5555
title: "show Analyze page",
5656
arguments: [],
5757
};
5858

59-
return [createProject, rtSetting, about, analyze];
59+
return [analyze, createProject, rtSetting, about, ];
6060
}
6161

6262
if (!element) {

src/vue/analyze/App.vue

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@
1313
:label="item.name"
1414
:name="item.name"
1515
>
16-
<el-table :data="tableData" style="width: 100%" v-loading="tableLoading" >
17-
">
16+
<el-table
17+
:data="tableData"
18+
style="width: 100%"
19+
v-loading="tableLoading"
20+
max-height="70vh"
21+
>
1822
<el-table-column
1923
v-for="item in tableColumns"
2024
:prop="item.prop"
@@ -81,16 +85,16 @@ const handleSentMessage = (sectionName: string) => {
8185
8286
const handleVChanged = (name: TabPaneName) => {
8387
tableLoading.value = true;
84-
handleSentMessage(`${name}`)
88+
handleSentMessage(`${name}`);
8589
};
8690
8791
const sections = ref<Section[]>([]);
8892
8993
onMounted(() => {
9094
window.addEventListener("message", (event) => {
9195
const message = event.data;
92-
if(message.from !== 'extension') {
93-
return;
96+
if (message.from !== "extension") {
97+
return;
9498
}
9599
console.log(message);
96100
switch (message.eventName) {

src/vue/components/Banner.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ window.addEventListener('message', (e) => {
3636
display: flex;
3737
padding: 20px;
3838
gap: 8px;
39-
background: #fff;
39+
background: var(--vscode-editor-background);
40+
color: var(--vscode-editor-foreground);
4041
}
4142
.logo {
4243
height: 60px;
@@ -48,12 +49,12 @@ window.addEventListener('message', (e) => {
4849
h1 {
4950
font-size: 16px;
5051
font-weight: 500;
51-
color: #000;
52+
color: var(--vscode-editor-foreground);
5253
margin: 0;
5354
}
5455
p {
5556
font-size: 12px;
56-
color: #000;
57+
color: var(--vscode-editor-foreground);
5758
margin: 4px 0 8px;
5859
}
5960
.bar {

0 commit comments

Comments
 (0)