mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
merged with develop
This commit is contained in:
@@ -38,6 +38,10 @@
|
||||
.title span {
|
||||
font-size: 22px;
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.price span {
|
||||
@@ -128,3 +132,35 @@
|
||||
.publisher {
|
||||
max-width: 300px;
|
||||
}
|
||||
|
||||
/* Portrait */
|
||||
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
|
||||
.title span {
|
||||
max-width: 370px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Landscape */
|
||||
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2) {
|
||||
.title span {
|
||||
max-width: 810px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Portrait */
|
||||
/* Declare the same value for min- and max-width to avoid colliding with desktops */
|
||||
/* Source: https://medium.com/connect-the-dots/css-media-queries-for-ipad-pro-8cad10e17106*/
|
||||
@media only screen and (min-device-width: 1024px) and (max-device-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
|
||||
.title span {
|
||||
max-width: 565px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Landscape */
|
||||
/* Declare the same value for min- and max-width to avoid colliding with desktops */
|
||||
/* Source: https://medium.com/connect-the-dots/css-media-queries-for-ipad-pro-8cad10e17106*/
|
||||
@media only screen and (min-device-width: 1366px) and (max-device-width: 1366px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2) {
|
||||
.title span {
|
||||
max-width: 900px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,6 +33,12 @@ export class ProductCardComponent implements OnInit {
|
||||
if (this._product.price.toString().indexOf('.') === -1) {
|
||||
return this._product.price + ',00';
|
||||
}
|
||||
|
||||
const afterDecimal = this._product.price.toString().split('.')[1];
|
||||
if (afterDecimal.length !== 2) {
|
||||
return this._product.price.toString().replace('.', ',') + '0';
|
||||
}
|
||||
|
||||
return this._product.price.toString().replace('.', ',');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user