Skip to content

Commit 1db1cbf

Browse files
committed
feat: update style
1 parent 1b6f0b7 commit 1db1cbf

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

client/src/components/base/collectionView.vue

+8-13
Original file line numberDiff line numberDiff line change
@@ -104,28 +104,23 @@ export default {
104104
}
105105
106106
.collectionView-wrapper-ul {
107-
display: flex;
108-
flex-direction: row;
109-
justify-content: flex-start;
110-
flex-wrap: wrap;
107+
display: grid;
108+
grid-template-columns: repeat(auto-fill, minmax(264px, 1fr));
109+
gap: 20px;
110+
padding: 0;
111+
width: 100%;
111112
}
112113
113114
.collectionView-wrapper .itemWrapper {
114115
position: relative;
115116
padding-bottom: 24px;
116117
background-color: white;
117-
margin-top: 20px;
118-
width: 264px;
118+
width: 100%;
119+
max-width: 264px;
120+
margin: 0 auto;
119121
text-align: center;
120122
border-radius: 4px;
121123
transition: 0.5s;
122-
margin-right: 2.6%;
123-
/*&:nth-child(2n-1) {*/
124-
/*margin-right: 2.6%;*/
125-
/*}*/
126-
/*&:nth-child(4n-2) {*/
127-
/*margin-right: 2.6%;*/
128-
/*}*/
129124
}
130125
131126
.itemWrapper:hover {

0 commit comments

Comments
 (0)