Skip to content

add solution#1923

Open
AnastasiiaCagle wants to merge 2 commits into
mate-academy:masterfrom
AnastasiiaCagle:develop
Open

add solution#1923
AnastasiiaCagle wants to merge 2 commits into
mate-academy:masterfrom
AnastasiiaCagle:develop

Conversation

@AnastasiiaCagle
Copy link
Copy Markdown

Copy link
Copy Markdown

@lerastarynets lerastarynets left a comment

Choose a reason for hiding this comment

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

I see you did a hard work) Let's improve it a little bit

Comment thread src/styles/_catalog.scss Outdated
&__card:not(:nth-child(4n)) {
margin-right: 48px;
@media (min-width: 489px) {
grid-template-columns: repeat(2, auto);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The grid-template-columns property should be set to 200px instead of auto. This is to ensure that the card width is always 200px including borders as specified in the task description.

Comment thread src/styles/_catalog.scss Outdated
}

@media (min-width: 768px) {
grid-template-columns: repeat(3, auto);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The grid-template-columns property should be set to 200px instead of auto. This is to ensure that the card width is always 200px including borders as specified in the task description.

Comment thread src/styles/_catalog.scss Outdated
}

@media (min-width: 1024px) {
grid-template-columns: repeat(4, auto);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The grid-template-columns property should be set to 200px instead of auto. This is to ensure that the card width is always 200px including borders as specified in the task description.

Copy link
Copy Markdown

@lerastarynets lerastarynets left a comment

Choose a reason for hiding this comment

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

Great job overall! Left one tiny suggestion for the improvement

Comment thread src/styles/_catalog.scss
&__card:not(:nth-child(4n)) {
margin-right: 48px;
@media (min-width: 489px) {
grid-template-columns: repeat(2, 200px);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You could have used scss variables to store 200px as it's reusable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants