mirror of https://github.com/hashicorp/consul
ui: Adds ability to show a 'partial' list in list-collections (#10174)
* ui: Add support for showing partial lists in ListCollection * Add CSS for partial 'View more' button, and move all CSS to /components * Enable partial view for intention permissionsrelease/1.10.0-beta3
parent
4c983cfd3e
commit
8522c83283
@ -0,0 +1,3 @@
|
||||
```release-note:improvement
|
||||
ui: Only show a partial list of intention permissions, with the option to show all
|
||||
```
|
@ -0,0 +1,11 @@
|
||||
@import './skin';
|
||||
@import './layout';
|
||||
.list-collection {
|
||||
@extend %list-collection;
|
||||
}
|
||||
.list-collection-scroll-virtual {
|
||||
@extend %list-collection-scroll-virtual;
|
||||
}
|
||||
%list-collection > button {
|
||||
@extend %list-collection-partial-button;
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
%list-collection > ul > li,
|
||||
%list-collection-scroll-virtual {
|
||||
position: relative;
|
||||
}
|
||||
%list-collection-scroll-virtual {
|
||||
height: 500px;
|
||||
}
|
||||
%list-collection-scroll-virtual > ul {
|
||||
overflow-x: hidden !important;
|
||||
}
|
||||
|
||||
%list-collection-partial-button {
|
||||
width: 100%;
|
||||
padding: 15px;
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
%list-collection > ul {
|
||||
border-top: 1px solid;
|
||||
border-color: var(--gray-200);
|
||||
}
|
||||
%list-collection-partial-button {
|
||||
cursor: pointer;
|
||||
background-color: var(--gray-050);
|
||||
color: var(--blue-500);
|
||||
}
|
||||
%list-collection-partial-button::after {
|
||||
@extend %with-chevron-up-mask, %as-pseudo;
|
||||
}
|
||||
%list-collection-partial-button.closed::after {
|
||||
@extend %with-chevron-down-mask;
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
.list-collection {
|
||||
@extend %list-collection;
|
||||
}
|
||||
.list-collection-scroll-virtual {
|
||||
@extend %list-collection-scroll-virtual;
|
||||
}
|
||||
%list-collection-scroll-virtual {
|
||||
height: 500px;
|
||||
position: relative;
|
||||
}
|
||||
%list-collection > ul {
|
||||
border-top: 1px solid $gray-200;
|
||||
}
|
||||
%list-collection > ul > li {
|
||||
position: relative;
|
||||
}
|
||||
%list-collection-scroll-virtual > ul {
|
||||
overflow-x: hidden !important;
|
||||
}
|
||||
%list-collection > ul > li:nth-child(2) .with-feedback p {
|
||||
bottom: auto;
|
||||
top: 24px;
|
||||
}
|
||||
%list-collection > ul > li:nth-child(2) p::after {
|
||||
bottom: auto;
|
||||
top: -10px !important;
|
||||
border-bottom-width: 18px;
|
||||
border-top-width: 0;
|
||||
}
|
Loading…
Reference in new issue