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

mintsweet pushed a commit to branch fix-bugs
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit da95530971e79afcad7b67446c36d2c499407496
Author: mintsweet <[email protected]>
AuthorDate: Wed Dec 27 16:45:24 2023 +1300

    fix(config-ui): adjust some style for exception
---
 .../routes/error/components/exception/index.tsx    | 28 ++++++++++++----------
 1 file changed, 15 insertions(+), 13 deletions(-)

diff --git a/config-ui/src/routes/error/components/exception/index.tsx 
b/config-ui/src/routes/error/components/exception/index.tsx
index d829ab728..748d23240 100644
--- a/config-ui/src/routes/error/components/exception/index.tsx
+++ b/config-ui/src/routes/error/components/exception/index.tsx
@@ -18,7 +18,7 @@
 
 import { useNavigate } from 'react-router-dom';
 import { CloseCircleOutlined } from '@ant-design/icons';
-import { Card, Flex, Button } from 'antd';
+import { Card, Space, Flex, Button } from 'antd';
 
 interface Props {
   error: string | Error;
@@ -30,24 +30,26 @@ export const Exception = ({ error }: Props) => {
 
   return (
     <Card>
-      <h2>
-        <CloseCircleOutlined size={20} color="#f5222d" />
-        <span>{error.toString() || 'Unknown Error'}</span>
-      </h2>
+      <Space>
+        <CloseCircleOutlined style={{ fontSize: 20, color: '#f5222d' }} />
+        <h2 style={{ color: '#f5222d' }}>{error.toString() || 'Unknown 
Error'}</h2>
+      </Space>
       <p>
         Please try again, if the problem persists include the above error 
message when filing a bug report on{' '}
         <strong>GitHub</strong>. You can also message us on 
<strong>Slack</strong> to engage with community members for
         solutions to common issues.
       </p>
       <Flex justify="center">
-        <Button type="primary" onClick={handleResetError}>
-          Continue
-        </Button>
-        <Button
-          onClick={() => 
window.open('https://github.com/apache/incubator-devlake', '_blank', 
'noopener,noreferrer')}
-        >
-          Visit GitHub
-        </Button>
+        <Space>
+          <Button type="primary" onClick={handleResetError}>
+            Continue
+          </Button>
+          <Button
+            onClick={() => 
window.open('https://github.com/apache/incubator-devlake', '_blank', 
'noopener,noreferrer')}
+          >
+            Visit GitHub
+          </Button>
+        </Space>
       </Flex>
     </Card>
   );

Reply via email to