Skip to content

Commit 2908f33

Browse files
committed
fix: selected element info overflow
1 parent 0c6b98d commit 2908f33

File tree

3 files changed

+56
-56
lines changed

3 files changed

+56
-56
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![pypi version](https://img.shields.io/pypi/v/uiviewer.svg)](https://pypi.python.org/pypi/uiviewer)
44
![python](https://img.shields.io/pypi/pyversions/uiviewer.svg)
55

6-
UI hierarchy visualization tool, supporting Android, iOS, HarmonyOS NEXT.
6+
UI hierarchy inspector, supporting Android, iOS, HarmonyOS NEXT.
77

88
This project is developed using FastAPI and Vue. It starts the service locally and displays UI hierarchy tree through web browser.
99

uiviewer/static/css/style.css

Lines changed: 53 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,23 @@ body, html {
8181
.center {
8282
width: 30%;
8383
background-color: #212933;
84+
}
85+
86+
.right {
87+
flex: 1;
88+
background-color: #212933;
89+
}
8490

91+
.divider {
92+
width: 1.5px;
93+
background-color: #333844;
94+
cursor: ew-resize;
95+
height: 100%;
96+
transition: background-color 0.3s;
97+
}
98+
.divider-hover, .divider-dragging {
99+
background-color: #3679E3;
100+
width: 3px;
85101
}
86102

87103
.region-title {
@@ -90,72 +106,55 @@ body, html {
90106
margin-bottom: 10px;
91107
}
92108

93-
.right {
94-
flex: 1;
95-
background-color: #212933;
109+
.custom-table {
110+
width: 100%;
111+
border-bottom: none !important;
96112
overflow: auto;
97113
}
98114

99-
.custom-table {
100-
width: 100%;
101-
height: 100%;
115+
.custom-tree {
116+
overflow: auto;
102117
}
103118

104-
.custom-table .el-table__body-wrapper {
105-
border: none; /* 移除外边框 */
106-
}
107-
108-
.custom-table .el-table__row {
109-
margin-bottom: 0; /* 移除行间距 */
110-
}
111-
112-
.custom-table .el-table__cell {
113-
padding: 5px; /* 减小单元格内边距 */
114-
border-right: 1px solid #333844; /* 添加竖向内边框 */
115-
border-bottom: 1px solid #333844; /* 添加横向内边框 */
116-
}
117-
118-
.custom-table .el-table__cell:last-child {
119-
border-right: none; /* 移除最后一列的右边框 */
120-
}
121-
122-
.custom-table .el-table__row:last-child .el-table__cell {
123-
border-bottom: none; /* 移除最后一行的下边框 */
124-
}
125-
126-
.custom-table .el-table__header-wrapper,
127-
.custom-table .el-table__body-wrapper {
128-
width: 100% !important; /* 确保表格填满父元素 */
129-
}
119+
.custom-table .el-table__row {
120+
margin-bottom: 0;
121+
}
130122

131-
.custom-table .el-table__header,
132-
.custom-table .el-table__body {
133-
width: 100% !important; /* 确保表格填满父元素 */
134-
}
123+
.custom-table .el-table__cell {
124+
padding: 5px;
125+
border-right: 1px solid #333844;
126+
border-bottom: 1px solid #333844;
127+
}
128+
129+
.custom-table .el-table__body-wrapper {
130+
border-bottom: none !important;
131+
}
132+
133+
.custom-table .el-table__row:last-child .el-table__cell {
134+
border-bottom: none !important;
135+
}
136+
137+
.custom-table .el-table__header-wrapper,
138+
.custom-table .el-table__body-wrapper {
139+
width: 100% !important;
140+
}
141+
142+
.custom-table .el-table__header,
143+
.custom-table .el-table__body {
144+
width: 100% !important;
145+
}
135146

136-
.attr-button {
147+
.attr-button {
137148
font-size: 12px;
138149
padding: 2px 3px;
139150
margin-left: 5px;
140-
}
141-
142-
code {
143-
background-color: #2D3740;
144-
padding: 3px 5px;
145-
border-radius: 4px;
146-
font-family: monospace;
147151
}
148152

149-
.divider {
150-
width: 1.5px;
151-
background-color: #333844;
152-
cursor: ew-resize;
153-
height: 100%;
154-
transition: background-color 0.3s;
155-
}
156-
.divider-hover, .divider-dragging {
157-
background-color: #3679E3;
158-
width: 3px;
153+
code {
154+
background-color: #2D3740;
155+
padding: 3px 5px;
156+
border-radius: 4px;
157+
font-family: monospace;
159158
}
160159

161160
.custom-link {

uiviewer/static/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>FastAPI + Vue</title>
77
<link rel="stylesheet" href="https://unpkg.com/[email protected]/lib/index.css">
8-
<link rel="stylesheet" type="text/css" href="/static/css/style.css">
8+
<link rel="stylesheet" type="text/css" href="/static/css/style.css?v=1.0">
9+
910
</head>
1011
<body>
1112
<div

0 commit comments

Comments
 (0)