Skip to content

Commit a3e5a52

Browse files
committed
style: update CSS for improved layout and styling
- Adjusted the container styles to include padding and gap for better spacing. - Modified the search container to have a rounded border and updated its position for improved visibility. - Changed the package list overflow behavior and padding for a cleaner appearance.
1 parent 10c910d commit a3e5a52

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

electron/pages/packages.css

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,19 @@ h1 {
3131
.container {
3232
display: flex;
3333
flex-direction: column;
34-
height: calc(100vh - 50px); /* account for h1 title + some padding */
35-
padding-top: 36px; /* account for title bar on Windows */
36-
overflow: hidden;
34+
height: calc(100vh - 50px);
35+
padding: 8px 16px 16px;
36+
gap: 12px;
37+
overflow-y: auto;
3738
}
3839

3940
.search-container {
40-
padding: 14px 16px 12px;
41+
padding: 12px 16px;
4142
background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.0));
4243
border-bottom: 1px solid #2e2e2e;
44+
border-radius: 12px;
4345
position: sticky;
44-
top: 36px; /* under title bar */
46+
top: 0;
4547
z-index: 10;
4648
backdrop-filter: blur(4px);
4749
display: grid;
@@ -91,14 +93,14 @@ h1 {
9193

9294
.package-list {
9395
flex: 1;
94-
overflow-y: auto;
96+
overflow-y: visible;
9597
overflow-x: hidden;
96-
padding: 8px 12px 16px;
98+
padding: 0 0 16px;
9799
display: grid;
98100
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
99101
gap: 16px;
100102
align-content: start;
101-
min-height: 0; /* Allow flex item to shrink below content size */
103+
min-height: 0;
102104
}
103105

104106
/* Scrollbar styling for webkit browsers */

0 commit comments

Comments
 (0)