Skip to content

Commit

Permalink
Improve test layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Super12138 committed Aug 30, 2024
1 parent 39b357e commit 385a65f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
17 changes: 14 additions & 3 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,15 @@ strong {
}

#controlArea {
margin: 5% 2% 2% 2%;
margin: 5% 2% 26% 2%;
}

a {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
max-width: 200px;
/* 设置最大宽度 */
}

.prev-btn {
Expand Down Expand Up @@ -120,7 +128,7 @@ strong {
margin-left: 10px;
}

.center{
.center {
text-align: center;
}

Expand All @@ -134,7 +142,10 @@ strong {
}

#references {
margin-top: 5%;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 100%;
}

#resultArea {
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'mdui/components/button-icon.js';
import 'mdui/components/divider.js';
import 'mdui/components/layout-item.js';
import 'mdui/components/layout-main.js';
import 'mdui/components/layout.js';
Expand Down
1 change: 0 additions & 1 deletion src/settings/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'mdui/components/dialog.js';
import 'mdui/components/dropdown.js';
import 'mdui/components/switch.js';
import 'mdui/components/divider.js';

import '@mdui/icons/delete--outlined.js';
import '@mdui/icons/info--outlined.js';
Expand Down
3 changes: 2 additions & 1 deletion test.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
<br>
<strong id="questionnaireTips" class="red"></strong>
</div>
<mdui-divider style="margin: 3% 0 3% 0;"></mdui-divider>
<div id="references">
<h5 style="margin: 20px 0px 20px 0px;">参考信息</h5>
<h5 style="margin: 0 0 20px 0;">参考信息</h5>
</div>
</div>

Expand Down

0 comments on commit 385a65f

Please sign in to comment.