Skip to content

Commit

Permalink
refactor(ui/card): optimization style of title in horizontal layout
Browse files Browse the repository at this point in the history
  • Loading branch information
qytayh committed May 12, 2022
1 parent f9c10c2 commit c8028fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/varlet-ui/src/card/card.less
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@

&__container {
padding: var(--card-padding);
position: relative;
flex-grow: 1;
min-width: 0;
}

&--layout-row &__floater {
Expand Down Expand Up @@ -116,12 +117,11 @@
}

&--layout-row &__title {
max-width: 100%;
overflow: hidden;
margin: var(--card-title-row-margin);
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
overflow: hidden;
white-space: nowrap;
}

&__subtitle {
Expand Down

0 comments on commit c8028fe

Please sign in to comment.