Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Commit

Permalink
πŸ’„ UI: better phone mode style (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 authored Jul 22, 2020
1 parent ef23cf0 commit e79cf58
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 26 additions & 1 deletion src/component/toolBar/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,41 @@
}
}

@media (max-width: @screen-xs) {
.@{pro-table-prefix-cls} {
.ant-table {
width: 100%;
overflow-x: auto;
&-thead > tr,
&-tbody > tr {
> th,
> td {
white-space: pre;
> span {
display: block;
}
}
}
}
}
}

@media (max-width: 575px) {
.@{pro-table-prefix-cls}-toolbar {
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
height: auto;
margin-bottom: 16px;
margin-left: 16px;
padding: 0;
padding: 8px;
padding-top: 16px;
line-height: normal;

&-title {
margin-bottom: 16px;
}

&-option {
display: flex;
justify-content: space-between;
Expand Down
2 changes: 2 additions & 0 deletions src/form/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@

@media (max-width: 575px) {
.@{pro-table-search-prefix-cls} {
height: auto !important;
padding-bottom: 24px;
.@{ant-prefix}-form-item {
display: inline;
}
Expand Down

0 comments on commit e79cf58

Please sign in to comment.