Skip to content

Commit

Permalink
修改退出登录样式
Browse files Browse the repository at this point in the history
  • Loading branch information
whyour committed Mar 10, 2022
1 parent 9f08245 commit 1d536cd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
28 changes: 19 additions & 9 deletions src/layouts/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@
.monaco-editor:not(.rename-box) {
height: calc(100vh - 128px) !important;
height: calc(100vh - var(--vh-offset, 0px) - 128px) !important;

.view-overlays .current-line {
border-width: 0;
}
}

.rename-box {
height: 0;

.rename-input {
height: 0;
padding: 0 !important;
Expand All @@ -43,6 +45,7 @@
.ant-pro-grid-content.wide {
max-width: unset !important;
overflow: auto;

.ant-pro-page-container-children-content {
overflow: auto;
height: 100%;
Expand All @@ -57,6 +60,7 @@

.ant-tooltip {
max-width: 500px !important;

.ant-tooltip-inner {
word-break: break-all !important;
}
Expand All @@ -72,6 +76,7 @@
.log-select {
width: 250px;
}

.ant-page-header-heading-left {
min-width: 100px;
}
Expand All @@ -81,6 +86,7 @@
.config-select {
width: 250px;
}

.ant-page-header-heading-left {
min-width: 100px;
}
Expand Down Expand Up @@ -119,10 +125,13 @@
flex-direction: column;
height: calc(100vh - 48px);
height: calc(100vh - var(--vh-offset, 0px) - 48px);

.ant-pro-grid-content.wide {
flex: 1;

.ant-pro-grid-content-children {
height: calc(100% - 36px);

> div,
.log-container,
.react-codemirror2,
Expand Down Expand Up @@ -197,6 +206,7 @@
.Resizer.disabled {
cursor: not-allowed;
}

.Resizer.disabled:hover {
border-color: transparent;
}
Expand All @@ -209,6 +219,7 @@

.inline-countdown.ant-statistic {
display: inline-block;

.ant-statistic-content {
font-size: 14px;
padding: 0 3px;
Expand Down Expand Up @@ -253,6 +264,7 @@

.ant-pro-basicLayout-content {
margin: 18px;

.ant-pro-page-container {
margin: -18px -18px -18px;
}
Expand Down Expand Up @@ -280,25 +292,23 @@

.side-menu-user-drop-menu {
position: relative;
margin: 0;
padding: 4px 0;
text-align: left;
background-clip: padding-box;
outline: none;
background-color: #fff;
padding: 4px 0;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 4px;
box-shadow: 0 6px 16px -8px rgb(0 0 0 / 8%), 0 9px 28px 0 rgb(0 0 0 / 5%),
0 12px 48px 16px rgb(0 0 0 / 3%);
.ant-dropdown-menu-item:hover {
color: #1890ff;
}
background-color: #373739;
box-shadow: 0 4px 10px rgb(0 0 0 / 10%);
overflow: auto;
}

.ant-pro-sider-logo {
padding: 16px 8px !important;

h1 {
margin-left: 5px !important;
}

img {
width: 32px !important;
border-radius: 52% !important;
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export default function (props: any) {
collapsed={collapsed}
rightContentRender={() =>
ctx.isPhone && (
<Dropdown overlay={menu} trigger={['click']}>
<Dropdown overlay={menu} trigger={['click', 'hover']}>
<span className="side-menu-user-wrapper">
<Avatar shape="square" size="small" icon={<UserOutlined />} />
<span style={{ marginLeft: 5 }}>admin</span>
Expand Down

0 comments on commit 1d536cd

Please sign in to comment.