Skip to content

Commit

Permalink
帮助页面,样式优化。
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Dec 3, 2024
1 parent 58500d3 commit ff17de8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ module.exports = {
proxy: {},
plugin: {},
help: {
data: [
dataList: [
{
title: '查看DevSidecar的说明文档(Wiki)',
url: 'https://github.com/docmirror/dev-sidecar/wiki',
Expand Down
12 changes: 6 additions & 6 deletions packages/gui/src/view/components/tree-node.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ export default {
<template>
<ul>
<li v-for="node in treeData" :key="node.title">
<span v-if="node.url && (node.url.startsWith('http://') || node.url.startsWith('https://'))">
<a :title="node.tip || node.title" :class="node.class" :style="node.style" @click="openExternal(node.url)">{{ node.title }}</a>
</span>
<span v-else>
<label :title="node.tip || node.title" :class="node.class" :style="node.style">{{ node.title }}</label>
</span>
<div v-if="node.url && (node.url.startsWith('http://') || node.url.startsWith('https://'))" :class="node.rowClass" :style="node.rowStyle">
<a :title="node.tip || node.title" :class="node.labelClass" :style="node.labelStyle" @click="openExternal(node.url)">{{ node.title }}</a>
</div>
<div v-else :class="node.rowClass" :style="node.rowStyle">
<label :title="node.tip || node.title" :class="node.labelClass" :style="node.labelStyle">{{ node.title }}</label>
</div>
<tree-node v-if="node.children && node.children.length > 0" :tree-data="node.children" class="child-node" />
</li>
</ul>
Expand Down
18 changes: 9 additions & 9 deletions packages/gui/src/view/style/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ hr {
.help-list {
ul {
padding-left: 10px;

li {
list-style: none;
line-height: 30px;

span {
display: block;
div {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
Expand All @@ -172,21 +172,21 @@ hr {
}
}

.help-title-h1 {
ul:first-child li:first-child div:first-child.title1 {
margin-top: 0;
}

.title1 {
font-size: 18px;
font-weight: bold;
border-bottom: 1px solid #eee;
margin-top: 20px;
margin-top: 12px;
margin-bottom: 5px;
padding-bottom: 5px;
padding-left: 5px;

&.md-mt-0 {
margin-top: 0;
}
}

.help-title-h2 {
.title2 {
font-size: 16px;
font-weight: bold;
margin-top: 10px;
Expand Down
2 changes: 1 addition & 1 deletion packages/gui/src/view/style/theme/dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ $dark-input: #777; //输入框:背景色
background: $dark-bd;
}

.help-list .help-title-h1 {
.help-list .title1 {
border-bottom-color: $dark-bd;
}

Expand Down

0 comments on commit ff17de8

Please sign in to comment.