This is an automated email from the ASF dual-hosted git repository.

dengliming pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 7d70fbec Optimize the menu-list search box layout of the resource page 
(#441)
7d70fbec is described below

commit 7d70fbecd3634c219d343dee96945cd95ff30ad0
Author: Kerwin Bryant <[email protected]>
AuthorDate: Fri Apr 5 19:26:43 2024 +0800

    Optimize the menu-list search box layout of the resource page (#441)
---
 src/routes/System/Resource/index.js | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/routes/System/Resource/index.js 
b/src/routes/System/Resource/index.js
index d9ae2f53..037a8e7f 100644
--- a/src/routes/System/Resource/index.js
+++ b/src/routes/System/Resource/index.js
@@ -497,7 +497,7 @@ export default class Resource extends Component {
                 <AuthButton perms="system:resource:list">
                   <Search
                     className={styles.search}
-                    style={{ width: "130px" }}
+                    style={{ minWidth: "130px" }}
                     placeholder={getIntlContent(
                       "SHENYU.SYSTEM.RESOURCE.MENU.INPUT.NAME",
                     )}
@@ -506,12 +506,12 @@ export default class Resource extends Component {
                     onSearch={this.searchMenu}
                   />
                 </AuthButton>
+                <AuthButton perms="system:resource:addMenu">
+                  <Button type="primary" onClick={() => this.addClick(1)}>
+                    {getIntlContent("SHENYU.BUTTON.RESOURCE.MENU.ADD")}
+                  </Button>
+                </AuthButton>
               </div>
-              <AuthButton perms="system:resource:addMenu">
-                <Button type="primary" onClick={() => this.addClick(1)}>
-                  {getIntlContent("SHENYU.BUTTON.RESOURCE.MENU.ADD")}
-                </Button>
-              </AuthButton>
             </div>
             {menuTree && menuTree.length > 0 ? (
               <Tree

Reply via email to