You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by wa...@apache.org on 2023/01/05 08:22:45 UTC
[incubator-devlake] branch main updated: fix: fix the style of version (#4108)
This is an automated email from the ASF dual-hosted git repository.
warren pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new e26b4c35b fix: fix the style of version (#4108)
e26b4c35b is described below
commit e26b4c35b81cec5c9c57c6d23cd4352aadffd350
Author: Likyh <ya...@meri.co>
AuthorDate: Thu Jan 5 16:22:40 2023 +0800
fix: fix the style of version (#4108)
* fix: fix the style of version
* fix: for issue
* fix: fix for review
---
config-ui/src/layouts/base/base.tsx | 4 ++--
config-ui/src/layouts/base/styled.ts | 6 ++++++
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/config-ui/src/layouts/base/base.tsx b/config-ui/src/layouts/base/base.tsx
index a5c39ac64..490ee079e 100644
--- a/config-ui/src/layouts/base/base.tsx
+++ b/config-ui/src/layouts/base/base.tsx
@@ -76,8 +76,8 @@ export const BaseLayout = ({ children }: Props) => {
))}
</Menu>
<div className="copyright">
- <div>{version}</div>
- <span>Apache 2.0 License</span>
+ <div>Apache 2.0 License</div>
+ <div className="version">{version}</div>
</div>
</S.Sider>
<S.Inner>
diff --git a/config-ui/src/layouts/base/styled.ts b/config-ui/src/layouts/base/styled.ts
index 6fc945334..614c6a389 100644
--- a/config-ui/src/layouts/base/styled.ts
+++ b/config-ui/src/layouts/base/styled.ts
@@ -73,6 +73,12 @@ export const Sider = styled.div`
left: 0;
text-align: center;
color: rgba(124, 124, 124, 0.7);
+ padding: 0 20px;
+ .version {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
}
`;