From cf1583238f301692ae4d1bd40d66546c8c4c43cf Mon Sep 17 00:00:00 2001 From: srgooglo Date: Tue, 1 Sep 2020 02:25:58 +0200 Subject: [PATCH] fix: code clean --- main/partials/WindowAppBar.css | 30 ------------------- main/partials/WindowAppBar.html | 25 ---------------- main/statics/loading.css | 2 +- src/components/Layout/Overlay/index.tsx | 2 +- src/components/Layout/WindowNavbar/index.less | 2 +- src/components/Loader/Loader.less | 2 +- src/layouts/PrimaryLayout.less | 2 +- src/pages/debug/index.less | 12 ++++---- 8 files changed, 10 insertions(+), 67 deletions(-) delete mode 100644 main/partials/WindowAppBar.css delete mode 100644 main/partials/WindowAppBar.html diff --git a/main/partials/WindowAppBar.css b/main/partials/WindowAppBar.css deleted file mode 100644 index aa77b63e..00000000 --- a/main/partials/WindowAppBar.css +++ /dev/null @@ -1,30 +0,0 @@ -.WindowAppBar { - -webkit-app-region: drag; - position: relative; - vertical-align: top; - width: 100%; - height: 25px; - z-index: 5000; - background-color: #2d2d2d; -} - -.WindowControl { - float: right; - height: 100%; - padding: 0 20px 0 0; - transition: all 140ms linear; - color: #747474; -} - -.anticon{ - margin: 0 15px 0 15px; - display: inline-block; - color: inherit; - font-style: normal; - vertical-align: middle; - text-align: center; -} - -.WindowControl:hover{ - color: #ffffff; -} \ No newline at end of file diff --git a/main/partials/WindowAppBar.html b/main/partials/WindowAppBar.html deleted file mode 100644 index 7ed2737f..00000000 --- a/main/partials/WindowAppBar.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - -
-
- - - - - - - - - -
-
- - - \ No newline at end of file diff --git a/main/statics/loading.css b/main/statics/loading.css index b6284ab5..8b3d3063 100644 --- a/main/statics/loading.css +++ b/main/statics/loading.css @@ -39,7 +39,7 @@ transform: translate(-10px, 0); } - .bouncy-logo .ball svg { + .bouncy-logo .ball svg { width: 200px; height: 200px; margin: auto; diff --git a/src/components/Layout/Overlay/index.tsx b/src/components/Layout/Overlay/index.tsx index 25633105..f69b02ad 100644 --- a/src/components/Layout/Overlay/index.tsx +++ b/src/components/Layout/Overlay/index.tsx @@ -99,7 +99,7 @@ export default class Overlay extends React.PureComponent { const { overlayElement, overlayActive, session_data, session_valid, session_uuid } = this.props.app const mainElement = (
-
<__searchBar />
+
<__searchBar />
Banana {session_valid?
@{session_data.username}#{session_uuid}
: null } diff --git a/src/components/Layout/WindowNavbar/index.less b/src/components/Layout/WindowNavbar/index.less index dd97ded4..d1b8d0e1 100644 --- a/src/components/Layout/WindowNavbar/index.less +++ b/src/components/Layout/WindowNavbar/index.less @@ -15,7 +15,7 @@ } .navbar:hover{ - background-color: rgba(54, 54, 54, 0.658); + background-color: rgba(54, 54, 54, 0.658); } .controls{ diff --git a/src/components/Loader/Loader.less b/src/components/Loader/Loader.less index c2d7e234..b072bbba 100755 --- a/src/components/Loader/Loader.less +++ b/src/components/Loader/Loader.less @@ -25,7 +25,7 @@ .newloader { transform: scale(0.28); width: 54px; - height: 23px; + height: 23px; } .newloader>div { diff --git a/src/layouts/PrimaryLayout.less b/src/layouts/PrimaryLayout.less index 8e867ede..8a17f926 100755 --- a/src/layouts/PrimaryLayout.less +++ b/src/layouts/PrimaryLayout.less @@ -20,7 +20,7 @@ min-width: 570px; @media (min-width: @bp-medium) { - min-width: 750px; + min-width: 750px; } @media (min-width: @bp-xlarge) { min-width: 1112px; diff --git a/src/pages/debug/index.less b/src/pages/debug/index.less index 0f4504a8..53d532d9 100644 --- a/src/pages/debug/index.less +++ b/src/pages/debug/index.less @@ -13,6 +13,10 @@ padding: 15px; border-radius: 10px; + .debuggerComponent { + padding: 15px; + } + :global { .ant-menu-inline { color: @__Global_layout_color; @@ -23,13 +27,7 @@ .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected { font-weight: bold; } - } - - .debuggerComponent { - padding: 15px; - } - - :global { + .ant-list-item { padding-top: 7px; padding-bottom: 7px;