Skip to content

Commit 7b9cb0a

Browse files
fix:UI bug on smaller screen sizes (#532)
1 parent 7d5d425 commit 7b9cb0a

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ ol {
9191
align-items: center;
9292
justify-content: space-between;
9393
line-height: 40px;
94-
padding: 0 20px;
94+
padding: 0 10px;
9595
border-radius: 5px;
9696
box-shadow: 1px 2px 2px rgba(191, 189, 189, 0.5);
9797
height: 40px;

src/routes/Plugin/Common/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,8 +1172,8 @@ export default class Common extends Component {
11721172
</Row>
11731173
<Row gutter={20}>
11741174
<Col span={10}>
1175+
<h3>{getIntlContent("SHENYU.PLUGIN.SELECTOR.LIST.TITLE")}</h3>
11751176
<div className="table-header">
1176-
<h3>{getIntlContent("SHENYU.PLUGIN.SELECTOR.LIST.TITLE")}</h3>
11771177
<div className={styles.headerSearch}>
11781178
<AuthButton perms={`plugin:${name}Selector:query`}>
11791179
<Search
@@ -1246,9 +1246,10 @@ export default class Common extends Component {
12461246
/>
12471247
</Col>
12481248
<Col span={14}>
1249+
<h3>{getIntlContent("SHENYU.PLUGIN.SELECTOR.RULE.LIST")}</h3>
1250+
12491251
<div className="table-header">
12501252
<div style={{ display: "flex", alignItems: "center" }}>
1251-
<h3>{getIntlContent("SHENYU.PLUGIN.SELECTOR.RULE.LIST")}</h3>
12521253
<AuthButton perms={`plugin:${name}:modify`}>
12531254
<Button
12541255
icon="reload"
@@ -1260,7 +1261,7 @@ export default class Common extends Component {
12601261
</AuthButton>
12611262
</div>
12621263

1263-
<div className={styles.headerSearch}>
1264+
<div className={`${styles.headerSearch} ${styles.marginLeft10}`}>
12641265
<AuthButton perms={`plugin:${name}Rule:query`}>
12651266
<Search
12661267
className={styles.search}

src/routes/Plugin/index.less

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
.headerSearch {
2424
display: flex;
2525
justify-content: space-between;
26-
margin-left: 10px;
2726
align-items: center;
2827

2928
.search {
@@ -32,6 +31,9 @@
3231
align-items: center;
3332
}
3433
}
34+
.marginLeft10{
35+
margin-left: 10px;
36+
}
3537

3638
.condition, .springCloud {
3739
margin-top: 8px;

0 commit comments

Comments
 (0)