Skip to content

Commit 26e7e1d

Browse files
Raushenwdevfx
andauthored
CardView: CardTemplate demo, adaptivity fix (DevExpress#30161)
Co-authored-by: wdevfx <[email protected]>
1 parent 00e159d commit 26e7e1d

File tree

8 files changed

+30
-10
lines changed

8 files changed

+30
-10
lines changed

apps/demos/Demos/CardView/CardTemplate/Angular/app/vehicle-card/vehicle-card.component.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
.vehicle__img-wrapper {
2-
height: 135px;
3-
border-bottom: var(--dx-border-width) solid var(--dx-color-border);
2+
overflow: hidden;
3+
display: flex;
4+
justify-content: center;
5+
aspect-ratio: 16 / 9;
6+
width: 100%;
47
background-color: #fff;
58
}
69

@@ -12,6 +15,7 @@
1215

1316
.vehicle__info {
1417
padding: 12px;
18+
border-top: var(--dx-border-width) solid var(--dx-color-border);
1519
}
1620

1721
.vehicle__name {

apps/demos/Demos/CardView/CardTemplate/React/styles.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
.vehicle__img-wrapper {
2-
height: 135px;
3-
border-bottom: var(--dx-border-width) solid var(--dx-color-border);
2+
overflow: hidden;
3+
display: flex;
4+
justify-content: center;
5+
aspect-ratio: 16 / 9;
6+
width: 100%;
47
background-color: #fff;
58
}
69

@@ -12,6 +15,7 @@
1215

1316
.vehicle__info {
1417
padding: 12px;
18+
border-top: var(--dx-border-width) solid var(--dx-color-border);
1519
}
1620

1721
.vehicle__name {

apps/demos/Demos/CardView/CardTemplate/ReactJs/styles.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
.vehicle__img-wrapper {
2-
height: 135px;
3-
border-bottom: var(--dx-border-width) solid var(--dx-color-border);
2+
overflow: hidden;
3+
display: flex;
4+
justify-content: center;
5+
aspect-ratio: 16 / 9;
6+
width: 100%;
47
background-color: #fff;
58
}
69

@@ -12,6 +15,7 @@
1215

1316
.vehicle__info {
1417
padding: 12px;
18+
border-top: var(--dx-border-width) solid var(--dx-color-border);
1519
}
1620

1721
.vehicle__name {

apps/demos/Demos/CardView/CardTemplate/Vue/VehicleCard.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ defineEmits(['show-info']);
6161

6262
<style>
6363
.vehicle__img-wrapper {
64-
height: 135px;
65-
border-bottom: var(--dx-border-width) solid var(--dx-color-border);
64+
overflow: hidden;
65+
display: flex;
66+
justify-content: center;
67+
aspect-ratio: 16 / 9;
68+
width: 100%;
6669
background-color: #fff;
6770
}
6871
@@ -74,6 +77,7 @@ defineEmits(['show-info']);
7477
7578
.vehicle__info {
7679
padding: 12px;
80+
border-top: var(--dx-border-width) solid var(--dx-color-border);
7781
}
7882
7983
.vehicle__name {

apps/demos/Demos/CardView/CardTemplate/jQuery/styles.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
.vehicle__img-wrapper {
2-
height: 135px;
3-
border-bottom: var(--dx-border-width) solid var(--dx-color-border);
2+
overflow: hidden;
3+
display: flex;
4+
justify-content: center;
5+
aspect-ratio: 16 / 9;
6+
width: 100%;
47
background-color: #fff;
58
}
69

@@ -12,6 +15,7 @@
1215

1316
.vehicle__info {
1417
padding: 12px;
18+
border-top: var(--dx-border-width) solid var(--dx-color-border);
1519
}
1620

1721
.vehicle__name {
247 KB
Loading
249 KB
Loading
247 KB
Loading

0 commit comments

Comments
 (0)