File tree Expand file tree Collapse file tree 3 files changed +13
-54
lines changed Expand file tree Collapse file tree 3 files changed +13
-54
lines changed Original file line number Diff line number Diff line change @@ -8,19 +8,18 @@ export const inputStyles = `
88 width: 100%;
99 display: inline-block;
1010 vertical-align: middle;
11- line-height: normal;
1211}
1312
1413.js-script-hook-input-field {
1514 width: 100%;
16- height: 32px; /* 与行高匹配 */
15+ height: 30px;
1716 padding: 0 10px;
1817 border: 1px solid #ccc;
1918 border-radius: 4px;
2019 box-sizing: border-box;
2120 font-size: 14px;
2221 background-color: white;
23- line-height: 30px ;
22+ line-height: 28px ;
2423 vertical-align: middle;
2524}
2625
@@ -40,9 +39,7 @@ export const inputStyles = `
4039/* 确保输入框在表格中与其他元素对齐 */
4140.debugger-component-table .js-script-hook-input-container {
4241 margin: 0;
43- display: inline-flex;
44- align-items: center;
45- height: 40px;
42+ vertical-align: middle;
4643}
4744
4845.debugger-component-table .js-script-hook-input-field {
Original file line number Diff line number Diff line change 44export const tipsStyles = `
55 /* 提示图标容器样式 */
66 .js-script-hook-tips-icon {
7- display: inline-flex;
8- align-items: center;
9- justify-content: center;
7+ display: inline-block;
108 width: 16px;
119 height: 16px;
1210 min-width: 16px;
@@ -20,25 +18,19 @@ export const tipsStyles = `
2018 margin-right: 5px;
2119 position: relative;
2220 vertical-align: middle;
23- line-height: 1;
24- /* 重要:精确控制图标位置,使其与输入框完美对齐 */
25- transform: translateY(-1px);
21+ text-align: center;
22+ line-height: 16px;
2623 }
2724
2825 /* 确保问号图标和后面的文本对齐 */
2926 .js-script-hook-tips-icon + span {
3027 vertical-align: middle;
31- display: inline-flex;
32- align-items: center;
33- line-height: normal;
34- height: 100%;
3528 }
3629
3730 /* 创建一个包装器,确保问号图标与文本在水平和垂直方向上对齐 */
3831 td[align="right"] {
3932 white-space: nowrap;
40- height: 42px;
41- line-height: normal;
33+ vertical-align: middle;
4234 }
4335
4436 td[align="right"] .js-script-hook-tips-icon,
Original file line number Diff line number Diff line change @@ -55,29 +55,24 @@ export const debuggerStyles = `
5555 width: 100%;
5656 border-spacing: 0;
5757 border-collapse: separate;
58- table-layout: fixed; /* 固定表格布局,减少重排 */
58+ table-layout: fixed;
5959}
6060
6161.debugger-component-table tr {
62- height: 42px; /* 略微增加行高,给UI元素更多呼吸空间 */
63- min-height: 42px; /* 确保最小高度 */
64- line-height: normal; /* 重要:使用normal而不是固定值 */
62+ height: 38px;
6563 vertical-align: middle;
6664}
6765
6866.debugger-component-table td {
6967 padding: 6px 8px;
7068 vertical-align: middle;
71- line-height: normal;
72- height: 42px; /* 确保单元格高度一致 */
7369}
7470
7571.debugger-component-table td[align="right"] {
7672 width: 200px;
7773 text-align: right;
7874 padding-right: 15px;
79- white-space: nowrap; /* 防止文本换行 */
80- overflow: visible; /* 确保提示图标不被截断 */
75+ white-space: nowrap;
8176}
8277
8378.debugger-component-table td[align="left"] {
@@ -90,43 +85,18 @@ export const debuggerStyles = `
9085 vertical-align: middle;
9186}
9287
93- /* 针对特定行的特殊样式调整 */
94- .debugger-component-table tr:has([id$="-url-pattern-input-container"]) {
95- height: 42px;
96- display: flex;
97- align-items: center;
98- }
99-
100- .debugger-component-table tr:has([id$="-url-pattern-input-container"]) td {
101- display: flex;
102- align-items: center;
103- }
104-
105- .debugger-component-table tr:has([id$="-url-pattern-input-container"]) td[align="right"] {
106- justify-content: flex-end;
107- }
108-
109- /* 修正输入框与问号图标的对齐 */
110- .js-script-hook-input-container {
111- display: inline-flex;
112- vertical-align: middle;
113- align-items: center;
114- }
115-
11688/* 确保测试按钮与问号图标对齐 */
11789.js-script-hook-button-container {
118- display: inline-flex ;
90+ display: inline-block ;
11991 vertical-align: middle;
12092 margin: 0;
121- align-items: center;
122- height: 42px;
12393}
12494
12595/* 调整输入框的高度,使其与行高匹配 */
12696.js-script-hook-input-field {
12797 box-sizing: border-box;
128- height: 32px ;
129- line-height: 30px ;
98+ height: 30px ;
99+ line-height: 28px ;
130100 padding: 0 10px;
131101}
132102` ;
You can’t perform that action at this time.
0 commit comments