Skip to content

Commit

Permalink
center text
Browse files Browse the repository at this point in the history
  • Loading branch information
JessNah committed May 22, 2021
1 parent 0c95c7b commit 8629481
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
14 changes: 11 additions & 3 deletions Extension/src/components/CheckoutDialog/CheckoutDialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,26 @@

.take2--checkout-dialog-cart-item {
display: inline-flex;
justify-content: space-between;
width: 100%;
padding-right: 10px;
}

.take2--checkout-dialog-cart-item-text {
max-width: 160px;
word-wrap: break-word;
line-height: normal;
vertical-align: middle;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
padding-left: 8px;
text-align: left;
display: -webkit-box;
vertical-align: middle;
line-height: normal;
}

.take2--checkout-dialog-cart-item-text-wrapper {
display: inline-block;
}

.take2--checkout-dialog-cart-item-score {
Expand All @@ -67,6 +74,7 @@
height: 40px;
// line-height: 40px;
text-align: center;
line-height: 40px;
}

.take2--checkout-dialog-cart-item-img {
Expand Down
4 changes: 3 additions & 1 deletion Extension/src/components/CheckoutDialog/CheckoutDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ class CheckoutDialog extends Component<CheckoutDialogProps, CheckoutDialogState>
<img className={"take2--checkout-dialog-cart-item-img"} src={item.image.currentSrc}/>
</div>
<div className={"take2--checkout-dialog-cart-item-text-container"}>
<span className={"take2--checkout-dialog-cart-item-text"}>{item.name}</span>
<div className={"take2--checkout-dialog-cart-item-text-wrapper"}>
<span className={"take2--checkout-dialog-cart-item-text"}>{item.name}</span>
</div>
</div>
<div className={"take2--checkout-dialog-cart-item-text-container"}>
<span className={"take2--checkout-dialog-cart-item-score"}>{"3000"}</span>
Expand Down

0 comments on commit 8629481

Please sign in to comment.