Skip to content

Commit 6e2503f

Browse files
Merge pull request #1349 from rocket-admin/fixes
Fixes
2 parents a2e0aab + 9fc922a commit 6e2503f

1 file changed

Lines changed: 16 additions & 12 deletions

File tree

frontend/src/app/components/connections-list/own-connections/own-connections.component.css

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,22 @@
3939
.supportedDatabases {
4040
list-style: none;
4141
display: grid;
42-
grid-template-columns: repeat(5, minmax(0, 1fr));
42+
grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
4343
grid-gap: 20px;
44-
justify-items: center;
4544
margin-top: 24px;
45+
width: 77%;
46+
}
47+
48+
@media (width <= 600px) {
49+
.supportedDatabases {
50+
width: 100%;
51+
}
4652
}
4753

4854
.addConnectionLink {
4955
display: flex;
5056
align-items: center;
51-
gap: 12px;
57+
gap: 8px;
5258
border-radius: 4px;
5359
box-shadow:
5460
0px 1px 3px 0px rgba(0, 0, 0, 0.2),
@@ -57,10 +63,9 @@
5763
color: inherit;
5864
font-weight: 600;
5965
height: 48px;
60-
padding: 0 6px;
66+
padding-left: 4px;
6167
text-decoration: none;
6268
transition: box-shadow 200ms, background 200ms, border 200ms;
63-
min-width: 154px;
6469
}
6570

6671
.addConnectionLink:hover {
@@ -188,22 +193,21 @@
188193

189194
.connections {
190195
list-style: none;
191-
display: flex;
192-
flex-wrap: wrap;
193-
justify-content: center;
196+
display: grid;
197+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
194198
gap: 20px;
195199
margin-top: 24px;
196200
width: 100%;
197201
}
198202

199-
@media (width <= 600px) {
203+
/* @media (width <= 600px) {
200204
.connections {
201205
flex-direction: column;
202206
flex-wrap: nowrap;
203207
}
204-
}
208+
} */
205209

206-
.connectionItem {
210+
/* .connectionItem {
207211
flex: 0 0 calc((100% - 40px)/3);
208212
max-width: calc((100% - 40px)/3);
209213
}
@@ -213,7 +217,7 @@
213217
flex: initial;
214218
max-width: 100%;
215219
}
216-
}
220+
} */
217221

218222
.connection {
219223
display: flex;

0 commit comments

Comments
 (0)