lbry-desktop/ui/scss/component/_block-list.scss
infinite-persistence 345d9e76b5
Blocklist: paginate + search (#7055)
* Paginate: add option to disable history and url param

* Refactored blocklists into `BlockList`; no functional change

Reason:
- With each list (Personal, Admin, Mod, Muted), there's a bunch of useEffects and variables needed to handle the state. All of them are doing 99% similar things.

* Paginate blocklists

6834

* Improve 'moderator-block' list visuals

- Added "Blocked on behalf of" to make things clearer.
- Use smaller ClaimPreview for delegators to save space (there might be lots of delegators)

* Add search bar to BlockList

6834

- Only supports channel-name search, per 6834. Channel-title search would probably be too heavy on the client side.
- Fuzzy search is possible, but is too slow on huge lists. Ended up with a simpler `matchSorter.rankings.CONTAINS`, which I think would cover typical cases.
2021-09-10 11:36:08 -04:00

85 lines
1.4 KiB
SCSS

.block-list--moderator {
.button__content {
align-items: flex-start;
}
.section__actions {
flex-wrap: wrap;
}
}
.block-list--delegator {
padding: var(--spacing-s);
.button--alt,
.button--secondary {
margin-top: var(--spacing-xxs);
}
.claim-preview__wrapper {
border-bottom: none !important;
margin-bottom: var(--spacing-xs);
}
.claim-preview--inline {
.channel-thumbnail {
@include handleChannelGif(3rem);
}
}
.claim-preview__title {
font-size: var(--font-small);
}
.channel-name {
font-size: var(--font-xsmall);
}
.section {
margin-left: var(--spacing-m);
}
label {
font-style: italic;
}
}
.block-modal--values {
margin-left: var(--spacing-s);
.help {
font-style: italic;
font-size: var(--font-xsmall);
}
}
.block-modal--finalize {
margin-top: var(--spacing-l);
}
.block-modal--active-channel {
padding: var(--spacing-xs);
display: flex;
align-items: center;
.channel-thumbnail {
margin-right: var(--spacing-xs);
height: 1.8rem;
width: 1.8rem;
}
@media (min-width: $breakpoint-small) {
border-left: 1px solid var(--color-border);
padding-left: var(--spacing-m);
margin-left: calc(var(--spacing-l) * 2);
}
}
.block-modal--active-channel-label {
@extend .help;
font-size: var(--font-xxsmall);
margin-top: 0;
max-width: 10rem;
white-space: pre-line;
margin-right: var(--spacing-s);
}