Skip to content

Commit

Permalink
fixed gride #80
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackliu007888 committed Apr 30, 2019
1 parent 62a3d9d commit 3028a06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions assets/styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ a {
@media (max-width: 800px) {
.sidebar {
position: relative;
width: 100%;
width: 100% !important;
height: 80px;
overflow: hidden;
transition: height 0.382s ease-in-out;
Expand Down Expand Up @@ -396,7 +396,7 @@ a {
}

.main-container {
margin-left: 0;
margin-left: 0 !important;;
}
.content-container {
padding: 32px 16px;
Expand Down
2 changes: 1 addition & 1 deletion style-override.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const generateOverride = (params = {}) => {
let result = ''

// 侧边栏宽度 - sidebarWidth
if (params.sidebarWidth !== '320px') {
if (params.sidebarWidth && params.sidebarWidth !== '320px') {
result += `
.sidebar {
width: ${params.sidebarWidth};
Expand Down

0 comments on commit 3028a06

Please sign in to comment.