Skip to content

Commit

Permalink
feat: adapt pinterests image alignment (merge pull request #30 from p…
Browse files Browse the repository at this point in the history
…rycaustic/main)

Mimic pinterest image view on search page
  • Loading branch information
Ahwxorg authored Jan 25, 2024
2 parents ddf5e73 + 51c825d commit 2f65f2b
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions misc/style-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,23 +148,19 @@ button {
height: 100%;
width: 100%;
object-fit: cover;
border-radius: 0.2rem;
}

.img-container{
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
grid-gap: 10px;
margin-bottom: 50px;
margin-left: 20px;
margin-right: 20px;

column-count: auto;
column-width: 14rem;
column-gap: 0.5rem;
padding: 1rem;
}

.img-result {
flex-grow: 1;
height: 12rem;
margin-bottom: 0.5rem;
display: block;
}

/* search css end */
Expand Down

0 comments on commit 2f65f2b

Please sign in to comment.