Skip to content

Commit

Permalink
prevent image properties from being overwritten
Browse files Browse the repository at this point in the history
  • Loading branch information
cbroms committed Mar 25, 2022
1 parent 63184fd commit cd243fc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions client/src/templates/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,21 @@ const basicTemplate = () => {
}
::slotted(#lp-image) {
max-width: 100%;
border-radius: var(--lp-image-border-radius, 3px);
border: var(--lp-image-border, none);
width: max-content;
height: auto;
max-width: 100% !important;
border-radius: var(--lp-image-border-radius, 3px) !important;
border: var(--lp-image-border, none) !important;
width: max-content !important;
height: auto !important;
object-fit: cover;
object-position: top center;
max-height: var(--lp-image-max-height, 150px);
max-height: var(--lp-image-max-height, 150px) !important;
display: inline-block !important;
margin: 0 !important;
}
::slotted(#lp-favicon) {
max-height: 14px;
max-width: 14px;
max-height: 14px !important;
max-width: 14px !important;
margin: 0 !important;
margin-right: 5px !important;
display: inline-block !important;
Expand Down

2 comments on commit cd243fc

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.