Skip to content

Commit

Permalink
fix: compatible mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidZORO committed Jul 2, 2020
1 parent a39c982 commit 2f9c8bf
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 17 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,9 @@ View the `README.md` of each sub-directory in `packages`. You may need to look a

### Dashboard ([demo](https://leaa-dashboard.now.sh))

##### dashboard-login
##### dashboard UI

![dashboard-login](https://raw.githubusercontent.com/SolidZORO/leaa/master/designs/ui/dashboard-login.png)

##### dashboard-user-edit

![dashboard-user-edit](https://raw.githubusercontent.com/SolidZORO/leaa/master/designs/ui/dashboard-user-edit.png)
![dashboard-UI]![new ui](./packages/leaa-dashboard/docs/images/leaa-dashboard-new-ui.png)

## **Legacy**

Expand Down
10 changes: 10 additions & 0 deletions packages/leaa-dashboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,13 @@ server {
}
}
```

### V3 UI and New UI

#### New

![new ui](./docs/images/leaa-dashboard-new-ui.png)

#### v3

![v3 ui](./docs/images/leaa-dashboard-v3-ui.png)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 29 additions & 7 deletions packages/leaa-dashboard/src/components/PageCard/style.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
vertical-align: 5px;
padding: 0 8px;
font-size: 110%;
display: none;

@media (min-width: @screen-md) {
display: inline-block;
}
}

&:hover {
Expand Down Expand Up @@ -51,23 +56,30 @@
.header {
background: transparent;
//margin: 12px 0;
display: flex;
//display: flex;
display: block;
justify-content: space-between;
//justify-content: flex-start;
align-items: center;
width: 100%;
//width: 100%;
margin-bottom: 14px;
min-height: 32px;

@media (min-width: @screen-md) {
justify-content: space-between;
//justify-content: space-between;
display: flex;
margin-bottom: 28px;
//margin-bottom: 28px;
}

.title {
margin: 0;
padding: 0 0 0 2px;
color: #26254b;
//width: 100%;
//
//@media (min-width: @screen-md) {
// width: auto;
//}

:global {
span {
Expand All @@ -80,8 +92,6 @@

.page-card-create-link {
margin-left: 20px;
//background-color: #ff0;
//border: 1px solid @primary-color;
}

.page-card-create-button {
Expand All @@ -91,9 +101,17 @@
.extra {
//font-size: 140%;
margin: 0;
margin-top: 10px;
padding: 0 0 0 3px;
display: flex;
justify-content: flex-end;
//justify-content: flex-start;
justify-content: space-between;

//@media (min-width: @screen-md) {
// justify-content: space-between;
// display: flex;
// margin-bottom: 28px;
//}

:global {
.g-page-card-extra-filter-bar-wrapper {
Expand All @@ -116,6 +134,10 @@

.title-wrapper {
margin-left: 40px;

@media (min-width: @screen-md) {
margin-left: 0;
}
}

.page-card-wrapper--complex {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ ul.menu-wrapper {
z-index: 2;
position: absolute;
top: 17px;
left: 0px;
left: 0;

@media (min-width: @screen-md) {
display: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ export default (props: IPage) => {
route={props.route}
title="@LIST"
complexExtra
className={style['wapper']}
loading={listLoading}
extra={
<div className="g-page-card-extra-filter-bar-wrapper">
<FilterIcon
Expand Down Expand Up @@ -107,8 +109,6 @@ export default (props: IPage) => {
/>
</div>
}
className={style['wapper']}
loading={listLoading}
>
<HtmlMeta title={t(`${props.route?.namei18n}`)} />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.user-avatar-wrapper {
display: flex;
justify-content: center;
margin: 50px auto;
margin: 20px auto;
}

.form-row {
Expand Down

0 comments on commit 2f9c8bf

Please sign in to comment.