Skip to content

Commit

Permalink
enable large images
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminpochat committed Nov 30, 2024
1 parent 866eef9 commit b4df2a3
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
databaseChangeLog:
- changeSet:
id: viandeendirect-2024-11-28
author: benjamin
changes:
- dropColumn:
tableName: package_templates
columns:
- column:
name: photo
- dropColumn:
tableName: package_lots
columns:
- column:
name: photo
- changeSet:
id: viandeendirect-2024-11-29
author: benjamin
changes:
- addColumn:
tableName: package_templates
columns:
- column:
name: photo
type: TEXT
- addColumn:
tableName: package_lots
columns:
- column:
name: photo
type: TEXT
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ databaseChangeLog:
- include:
relativeToChangelogFile: true
file: changelog-2024-10.yaml
- include:
relativeToChangelogFile: true
file: changelog-2024-11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@
.package-lot__unit_price {
font-size: smaller;
}

.package-lot__image {
max-width: 15rem;
grid-column: 1/-1;
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function PackageLotDescription({ lot: lot }) {

function getImage() {
if (lot.photo) {
return <img src={'data:image/png;base64,' + lot.photo} ></img>
return <img className='package-lot__image' src={'data:image/png;base64,' + lot.photo} ></img>
} else {
return <></>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
display: flex;
flex-flow: wrap;
justify-content: left;
align-items: flex-start;
}

.sale-customer-card__product-information {
Expand Down

0 comments on commit b4df2a3

Please sign in to comment.