Skip to content

Commit 0864a20

Browse files
pxamikedmh
authored andcommitted
[BUGFIX] never upscaling smaller background images in bg image and contact cards elem. (#412)
* [FIX] changed file.width to file.maxW to avoid upscaling. * [FIX] removed measurement unit for consistency
1 parent db9b569 commit 0864a20

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Configuration/TypoScript/Library/lib.responsiveBackgroundImage.setupts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ page.cssInline {
5757
file {
5858
import.data = file:current:uid
5959
treatIdAsReference = 1
60-
width = 767
60+
maxW = 767
6161
}
6262
}
6363

@@ -70,32 +70,32 @@ page.cssInline {
7070
20 = TEXT
7171
20.cObject < .10
7272
20 {
73-
cObject.cObject.file.width = 992px
73+
cObject.cObject.file.maxW = 992
7474
noTrimWrap = | @media (min-width: 768px) { | } |
7575
}
7676

7777
30 = TEXT
7878
30.cObject < .10
7979
30 {
80-
cObject.cObject.file.width = 1920
80+
cObject.cObject.file.maxW = 1920
8181
noTrimWrap = | @media (min-width: 992px) { | } |
8282
}
8383
60 = TEXT
8484
60.cObject < .10
8585
60 {
86-
cObject.cObject.file.width = 1000
86+
cObject.cObject.file.maxW = 1000
8787
noTrimWrap = | @media (max-width: 767px) and (-webkit-min-device-pixel-ratio: 2), (max-width: 767px) and (min-resolution: 2dppx) { | } |
8888
}
8989
70 = TEXT
9090
70.cObject < .10
9191
70 {
92-
cObject.cObject.file.width = 1536
92+
cObject.cObject.file.maxW = 1536
9393
noTrimWrap = | @media (min-width: 768px) and (-webkit-min-device-pixel-ratio: 2), (min-width: 768px) and (min-resolution: 2dppx) { | } |
9494
}
9595
80 = TEXT
9696
80.cObject < .10
9797
80 {
98-
cObject.cObject.file.width = 2400
98+
cObject.cObject.file.maxW = 2400
9999
noTrimWrap = | @media (min-width: 992px) and (-webkit-min-device-pixel-ratio: 2), (min-width: 992px) and (min-resolution: 2dppx) { | } |
100100
}
101101
}

Configuration/TypoScript/Library/lib.responsiveContactCards.setupts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ page.cssInline {
5757
file {
5858
import.data = file:current:uid
5959
treatIdAsReference = 1
60-
width = 212
60+
maxW = 212
6161
}
6262
}
6363

@@ -70,31 +70,31 @@ page.cssInline {
7070
20 = TEXT
7171
20.cObject < .10
7272
20 {
73-
cObject.cObject.file.width = 256
73+
cObject.cObject.file.maxW = 256
7474
noTrimWrap = | @media (max-width: 767px) { | } |
7575
}
7676
30 = TEXT
7777
30.cObject < .10
7878
30 {
79-
cObject.cObject.file.width = 384
79+
cObject.cObject.file.maxW = 384
8080
noTrimWrap = | @media (min-width: 992px) { | } |
8181
}
8282
60 = TEXT
8383
60.cObject < .10
8484
60 {
85-
cObject.cObject.file.width = 414
85+
cObject.cObject.file.maxW = 414
8686
noTrimWrap = | @media (max-width: 767px) and (-webkit-min-device-pixel-ratio: 2), (max-width: 767px) and (min-resolution: 2dppx) { | } |
8787
}
8888
70 = TEXT
8989
70.cObject < .10
9090
70 {
91-
cObject.cObject.file.width = 512
91+
cObject.cObject.file.maxW = 512
9292
noTrimWrap = | @media (min-width: 768px) and (-webkit-min-device-pixel-ratio: 2), (min-width: 768px) and (min-resolution: 2dppx) { | } |
9393
}
9494
80 = TEXT
9595
80.cObject < .10
9696
80 {
97-
cObject.cObject.file.width = 768
97+
cObject.cObject.file.maxW = 768
9898
noTrimWrap = | @media (min-width: 992px) and (-webkit-min-device-pixel-ratio: 2), (min-width: 992px) and (min-resolution: 2dppx) { | } |
9999
}
100100
}

0 commit comments

Comments
 (0)