Skip to content

Commit 3932b83

Browse files
committed
fix(ui): 改进tips组件样式,增加内边距和提高可视性
1 parent 7cab06a commit 3932b83

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/config/ui/component/basic/tips/styles.ts

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,28 +58,29 @@ export const tipsStyles = `
5858
background-color: #333;
5959
color: white;
6060
text-align: left;
61-
padding: 10px 12px;
62-
border-radius: 4px;
61+
padding: 15px 18px;
62+
border-radius: 6px;
6363
width: max-content;
64-
max-width: 300px;
65-
min-width: 180px;
66-
font-size: 12px;
67-
z-index: 1000;
68-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
64+
max-width: 350px;
65+
min-width: 200px;
66+
font-size: 13px;
67+
z-index: 10000; /* 提高z-index确保显示在最上层 */
68+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
6969
opacity: 0;
7070
transition: opacity 0.3s, visibility 0.3s;
7171
pointer-events: none;
7272
white-space: normal;
73-
line-height: 1.5;
73+
line-height: 1.6;
7474
word-break: break-word;
7575
word-wrap: break-word;
7676
height: auto;
7777
overflow: visible;
78+
margin: 5px;
7879
}
7980
8081
/* 针对超长内容的样式优化 */
8182
.js-script-hook-tooltip.long-content {
82-
max-height: 300px;
83+
max-height: 350px;
8384
overflow-y: auto;
8485
}
8586
@@ -158,7 +159,7 @@ export const tipsStyles = `
158159
/* 响应式处理长文本 */
159160
@media screen and (max-width: 768px) {
160161
.js-script-hook-tooltip {
161-
max-width: 250px;
162+
max-width: 300px;
162163
}
163164
}
164165
`;

0 commit comments

Comments
 (0)