Skip to content

Commit

Permalink
Merge branch 'develop' into 20231105_fix_upload_drag_accept
Browse files Browse the repository at this point in the history
  • Loading branch information
sheepluo committed Nov 5, 2023
2 parents 0f73607 + a93f68d commit b76d842
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 19 deletions.
1 change: 1 addition & 0 deletions style/mobile/components/image-viewer/v2/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
top: 50%;
transform: translateY(-50%);
z-index: 1005;
border-radius: 0;
}

&__swiper-item {
Expand Down
51 changes: 34 additions & 17 deletions style/web/components/menu/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ a.@{prefix}-menu__item {
flex: 1;
display: flex;
align-items: center;
// overflow: auto hidden;
}

.@{prefix}-menu__operations {
Expand Down Expand Up @@ -136,6 +135,12 @@ a.@{prefix}-menu__item {
&.@{prefix}-is-collapsed {
width: @default-menu-collapse-width;

.@{prefix}-menu__logo {
& > * {
margin-left: @comp-margin-l;
}
}

.@{prefix}-menu {
.@{prefix}-menu__item {
padding: 0 14px;
Expand Down Expand Up @@ -202,6 +207,18 @@ a.@{prefix}-menu__item {
}
}

.@{prefix}-menu-group {
&:first-child {
.@{prefix}-menu-group__title {
display: none;

& + * {
margin-top: 0;
}
}
}
}

.@{prefix}-menu-group__title {
padding: 0;
font-size: 0;
Expand Down Expand Up @@ -249,7 +266,6 @@ a.@{prefix}-menu__item {
.@{prefix}-menu {
padding: @comp-paddingTB-l @comp-paddingLR-s;
position: relative;
// overflow: hidden auto;
flex: 1;

&--scroll {
Expand All @@ -258,6 +274,20 @@ a.@{prefix}-menu__item {
overflow-y: auto;
overflow-x: hidden;
}

& > *:not(.@{prefix}-menu-group) {
&:not(:first-child) {
margin-top: @comp-margin-xs;
}
}

.@{prefix}-menu-group,
.@{prefix}-menu__sub,
.@{prefix}-submenu {
& > *:not(:first-child) {
margin-top: @comp-margin-xs;
}
}
}

.@{prefix}-menu-group {
Expand All @@ -273,7 +303,6 @@ a.@{prefix}-menu__item {
}

.@{prefix}-submenu {
margin-bottom: @comp-margin-xs;
position: relative;
}

Expand Down Expand Up @@ -301,7 +330,6 @@ a.@{prefix}-menu__item {

.@{prefix}-menu__item {
&.@{prefix}-is-opened {
margin: @comp-margin-xs 0;
color: @menu-color-light;
background-color: unset;

Expand All @@ -328,7 +356,6 @@ a.@{prefix}-menu__item {

.@{prefix}-menu__item {
position: relative;
margin: @comp-margin-xs 0;
padding: 0 10px 0 16px;
height: @default-menu-item-height;
line-height: @default-menu-item-height;
Expand All @@ -339,14 +366,6 @@ a.@{prefix}-menu__item {
padding @anim-duration-slow @anim-time-fn-easing;
box-sizing: border-box;

&:first-child {
margin-top: 0;
}

&:last-child {
margin-bottom: 0;
}

.t-icon {
width: 20px;
height: 20px;
Expand Down Expand Up @@ -759,10 +778,8 @@ a.@{prefix}-menu__item {

.@{prefix}-menu__item,
.@{prefix}-submenu {
margin: @comp-margin-xxs 0 0 0;

&:first-child {
margin-top: 0;
&:not(:first-child) {
margin-top: @comp-margin-xxs;
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions style/web/components/radio/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
border-radius: 0 @border-radius-default @border-radius-default 0;
}

&:only-child {
border-radius: @border-radius-default;
}

&.@{prefix}-is-checked {
color: @radio-button-color-outline-checked;
}
Expand Down
6 changes: 6 additions & 0 deletions style/web/components/tabs/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -352,3 +352,9 @@
position: relative;
}
}

.@{prefix}-tab-panel {
&.@{prefix}-is-hidden {
display: none;
}
}
4 changes: 2 additions & 2 deletions style/web/components/tag-input/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
.t-input-suffix-icon(@comp-margin-s);

&.@{prefix}-size-s {
padding: 0 @comp-paddingLR-xxs 0 @comp-margin-xs;
padding: 0 @comp-paddingLR-s 0 @comp-margin-xs;
min-height: @tag-input-height-s;
.@{prefix}-tag {
margin: 1px @comp-margin-xs 1px 0;
Expand All @@ -36,7 +36,7 @@

&.@{prefix}-size-l {
min-height: @tag-input-height-l;
padding-right: @comp-paddingLR-m;
padding: 0 @comp-paddingLR-m 0 @comp-margin-s;
.t-input-suffix-icon(@comp-margin-m);
}
}
Expand Down

0 comments on commit b76d842

Please sign in to comment.