Skip to content

Commit

Permalink
Update default Card aspect-ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
sashachabin committed Aug 27, 2024
1 parent 357528a commit 5c70404
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/components/Articles/Article/parseMarkdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function parseMarkdown(html) {
md.renderer.rules.csc = (tokens, index) => {
if (tokens[index].tag === 'card') {
const props = parseToObject(tokens[index].markup);
tokens[index].content = renderToString(<Card size="small" {...props} />);
tokens[index].content = renderToString(<Card {...props} />);
}

return defaultCscBodyRender(tokens, index);
Expand Down
1 change: 1 addition & 0 deletions client/components/MainPage/Card/Card.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
transition: .15s ease background-color, .15s ease background-image, .15s ease filter;
overflow: hidden;
position: relative;
aspect-ratio: 4 / 3;
}

/* Preload hover images */
Expand Down

0 comments on commit 5c70404

Please sign in to comment.