Skip to content

Commit

Permalink
Add filter field into dropdowns (#605)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Kolárik <[email protected]>
  • Loading branch information
xbpcb and MartinKolarik authored Nov 14, 2023
1 parent c32bc4d commit 41c452b
Show file tree
Hide file tree
Showing 11 changed files with 733 additions and 340 deletions.
9 changes: 0 additions & 9 deletions src/assets/less/components/package-file-browser.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@
font-weight: 400;
-webkit-font-smoothing: antialiased;

.version-dropdown {
font-size: 16px;
float: right;

.version-dropdown-selected-version {
font-weight: 600;
}
}

.box-files {
width: 100%;

Expand Down
83 changes: 21 additions & 62 deletions src/assets/less/components/package-install-block.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,37 +24,6 @@
border-radius: 8px;
}

.dropdown-wrapper {
display: flex;
align-items: center;
height: 32px;

label {
margin-bottom: 0;
}

.btn.dropdown-toggle {
font-size: 14px;
line-height: 20px;
color: #fff;
height: 100%;
background: #394356;
border-radius: 6px;
border: none;
padding: 6px 15px 6px 12px;

&:active, &:hover, &:focus {
color: #fff;
}

> span {
max-width: 100px;
text-overflow: ellipsis;
overflow: hidden;
}
}
}

.switch-wrapper {
align-items: center;

Expand Down Expand Up @@ -144,6 +113,18 @@
}
}

.versions-wrapper {
display: flex;
align-items: center;
column-gap: 8px;

>span {
color: #fff;
font-size: 14px;
line-height: 20px;
}
}

.install-settings {
display: flex;
justify-content: flex-end;
Expand All @@ -167,7 +148,7 @@
}
}

& > .dropdown-wrapper {
& > .versions-wrapper {
display: none;

@media (min-width: @screen-sm-min) {
Expand Down Expand Up @@ -282,40 +263,18 @@
}
}

.dropdown-wrapper {
margin-top: 24px;
.versions-wrapper {
display: flex;
flex-direction: column;
align-items: start;
height: auto;
row-gap: 8px;
margin-top: 24px;
width: 100%;
align-items: flex-start;

label {
>span {
color: #5c667a;
font-weight: 400;
}

.btn-group {
width: 100%;
margin-top: 8px;

&.open .dropdown-menu {
max-width: unset;
width: 100%;
}
}

.dropdown-toggle {
width: 100%;
padding: 10px 8px 10px 16px;
border: 1px solid #cfd6dd;
color: #17233b;
background-color: #fff;
display: flex;
align-items: center;
justify-content: space-between;

> span {
max-width: 100%;
}
}
}

.btn-primary {
Expand Down
8 changes: 0 additions & 8 deletions src/assets/less/components/package.less
Original file line number Diff line number Diff line change
Expand Up @@ -582,14 +582,6 @@
.c-stats-table {
min-height: 346px;
}

.version-dropdown {
vertical-align: top;

.dropdown-menu {
max-height: 228px;
}
}
}
}

Expand Down
Loading

0 comments on commit 41c452b

Please sign in to comment.