b75a4014b6
* Redesign threadline and fetching state - threadline goes right below channel avatar, mimicking reddits implementation, has a increase effect on hover and is slimmer, creating more space for comments on screen - fetching state now replaces show/hide button, also mimicking reddit, and now says that it is loading, instead of a blank spinner, and also improves space a bit * Redesign comment threads - Allow for infinite comment chains - Can go back and forth between the pages - Can go back to all comments or to the first comment in the chain - Some other improvements, which include: - add title on non-drawer comment sections (couldn't see amount of comments) - fix Expandable component (would begin expanded and collapse after the effect runs, which looked bad and shifted the layout, now each comments greater than the set length begins collapsed) - used constants for consistency * Fix replying to last thread comment * Fix buttons condition (only on fetched comment to avoid deleted case) * Fix auto-scroll * Bring back instant feedback for Show More replies * Improve thread back links - Now going back to all comments links the top-level comment for easier navigation - Going back to ~ previous ~ now goes back into the chain instead of topmost level * Clear timeouts due to unrelated issue * Fix deep thread linked comment case and more scroll improvements * More minor changes * Flow * Fix commentList tile style * Fix long channel names overflowing on small screens * More scroll changes * Fix threadline * Revert "Fix long channel names overflowing on small screens" This reverts commit e4d2dc7da5861ed8136a60f3352e41a690cd4d33. * Fix replies fetch * Revert "Fix replies fetch" This reverts commit ec70054675a604a7a5f3764ba07c36bf7b0f49c8. * Cleanup and make smooth * Always use linked comment on threads * Cleanup * Higlight thread comment * Fix comment body styles
353 lines
7.1 KiB
SCSS
353 lines
7.1 KiB
SCSS
.MuiAutocomplete-inputRoot {
|
|
@media (min-width: $breakpoint-small) {
|
|
padding: 0 !important;
|
|
font-family: inherit !important;
|
|
font-weight: inherit !important;
|
|
font-size: inherit !important;
|
|
color: var(--color-text) !important;
|
|
|
|
.create__comment {
|
|
min-height: calc(var(--height-input) * 1.5) !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
.comment-create__auth {
|
|
.MuiAutocomplete-root {
|
|
@media (min-width: $breakpoint-small) {
|
|
margin-top: var(--spacing-xxs);
|
|
}
|
|
|
|
@media (min-width: $breakpoint-small) {
|
|
margin-bottom: var(--spacing-m);
|
|
}
|
|
}
|
|
}
|
|
|
|
.livestream__comment-create {
|
|
.comment-create__auth {
|
|
.MuiAutocomplete-root {
|
|
margin-top: 0px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.comment-create--drawer {
|
|
.MuiPaper-root {
|
|
.form-field__two-column,
|
|
.MuiOutlinedInput-root {
|
|
padding: 0px var(--spacing-xxs) 0px 0px !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
.livestream__comment-create {
|
|
@media (max-width: $breakpoint-small) {
|
|
.MuiOutlinedInput-notchedOutline {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (min-width: $breakpoint-small) {
|
|
.MuiOutlinedInput-notchedOutline {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.MuiDrawer-root {
|
|
.comment-create__min-amount-notice {
|
|
margin: 2px;
|
|
margin-left: var(--spacing-xxxs);
|
|
margin-right: var(--spacing-xxxs);
|
|
padding: var(--spacing-xxs);
|
|
text-align: center !important;
|
|
.credit-amount {
|
|
font-size: var(--font-xsmall);
|
|
}
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
padding-top: calc(var(--spacing-xs) + 3px);
|
|
font-size: var(--font-xsmall);
|
|
}
|
|
}
|
|
}
|
|
|
|
.card--enable-overflow {
|
|
.comment-create__min-amount-notice {
|
|
margin-bottom: var(--spacing-xxs);
|
|
}
|
|
}
|
|
|
|
.comment-create--drawer .MuiOutlinedInput-notchedOutline {
|
|
border: 0px !important;
|
|
// border-top: 1px solid var(--color-border) !important;
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
.card__main-actions .commentCreate .MuiOutlinedInput-notchedOutline {
|
|
// border: 1px solid var(--color-border) !important;
|
|
border-radius: var(--border-radius) !important;
|
|
}
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
.MuiOutlinedInput-input {
|
|
padding: 0px var(--spacing-xxs);
|
|
}
|
|
|
|
.MuiOutlinedInput-root {
|
|
font-size: var(--font-xsmall) !important;
|
|
flex-wrap: nowrap !important;
|
|
color: var(--color-text) !important;
|
|
// padding: 0px !important;
|
|
padding: 0px var(--spacing-xxs) 0px 0px !important;
|
|
|
|
textarea {
|
|
border: none;
|
|
margin: 9px 0px;
|
|
}
|
|
|
|
button {
|
|
padding: var(--spacing-xxs);
|
|
}
|
|
|
|
.button--primary {
|
|
border-radius: 100%;
|
|
height: unset;
|
|
padding: var(--spacing-xxs);
|
|
|
|
.button__content {
|
|
height: unset;
|
|
}
|
|
}
|
|
|
|
span {
|
|
color: var(--color-text) !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
.MuiAutocomplete-paper {
|
|
@extend .card;
|
|
background-color: var(--color-card-background);
|
|
box-shadow: var(--card-box-shadow);
|
|
color: var(--color-text) !important;
|
|
|
|
.textarea-suggestions__group {
|
|
&:last-child hr {
|
|
display: none;
|
|
}
|
|
|
|
.textarea-suggestions__group-label {
|
|
@extend .wunderbar__label;
|
|
}
|
|
|
|
.Mui-focused {
|
|
background-color: var(--color-menu-background--active);
|
|
}
|
|
}
|
|
|
|
> .icon {
|
|
top: 0;
|
|
left: var(--spacing-m);
|
|
height: 100%;
|
|
z-index: 1;
|
|
stroke: var(--color-input-placeholder);
|
|
}
|
|
|
|
@media (min-width: $breakpoint-small) {
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
.MuiAutocomplete-option {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 var(--spacing-xxs);
|
|
margin: 0 var(--spacing-xxs);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
border-radius: var(--border-radius);
|
|
|
|
.channel-thumbnail {
|
|
@include handleChannelGif(2.1rem);
|
|
margin-right: 0;
|
|
|
|
@media (min-width: $breakpoint-small) {
|
|
@include handleChannelGif(2.1rem);
|
|
}
|
|
}
|
|
|
|
.textarea-suggestion__label {
|
|
@extend .wunderbar__suggestion-label;
|
|
margin-left: var(--spacing-m);
|
|
display: block;
|
|
position: relative;
|
|
|
|
.textarea-suggestion__title {
|
|
@extend .wunderbar__suggestion-title;
|
|
}
|
|
|
|
.textarea-suggestion__value {
|
|
@extend .wunderbar__suggestion-name;
|
|
}
|
|
}
|
|
}
|
|
|
|
.textarea-suggestions__separator {
|
|
@extend .wunderbar__top-separator;
|
|
}
|
|
|
|
.MuiAutocomplete-loading {
|
|
color: var(--color-text) !important;
|
|
}
|
|
|
|
.MuiPaper-root {
|
|
//background-color:rgba(var(--color-header-background-base),1);
|
|
background-color: var(--mui-background);
|
|
.form-field__two-column {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-end;
|
|
border-top: 1px solid var(--color-border);
|
|
border-bottom: 1px solid var(--color-border);
|
|
}
|
|
.card {
|
|
padding: var(--spacing-xxs) !important;
|
|
padding-bottom: 0 !important;
|
|
.card__main-actions {
|
|
padding-top: 0;
|
|
}
|
|
}
|
|
.card::-webkit-scrollbar {
|
|
width: 2px !important;
|
|
height: 6px;
|
|
}
|
|
.livestream__comments--mobile::-webkit-scrollbar {
|
|
width: 2px !important;
|
|
height: 6px;
|
|
}
|
|
|
|
// Tabs
|
|
.tabs {
|
|
border-top: 1px solid var(--color-border);
|
|
.tab {
|
|
// padding-top:0;
|
|
&::after {
|
|
height: 4px !important;
|
|
bottom: calc(var(--tab-indicator-size) * -2 + 13px);
|
|
}
|
|
}
|
|
.tabs__list--comment-selector {
|
|
height: 2rem !important;
|
|
padding-right: calc(var(--spacing-m) + 16px);
|
|
}
|
|
.tab__panel {
|
|
.button--close {
|
|
top: -4px;
|
|
}
|
|
}
|
|
}
|
|
|
|
label {
|
|
padding-left: var(--spacing-xxxs);
|
|
}
|
|
|
|
.MuiOutlinedInput-root {
|
|
textarea {
|
|
&:focus-visible {
|
|
box-shadow: unset;
|
|
}
|
|
}
|
|
div {
|
|
.button--primary {
|
|
.icon {
|
|
margin-right: -2px;
|
|
margin-left: 2px;
|
|
stroke: var(--color-primary-contrast);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.button--alt[aria-label='Refresh'] {
|
|
top: -1px;
|
|
float: right;
|
|
margin-right: 0;
|
|
}
|
|
.comment__sort {
|
|
.button--alt[aria-label='Refresh'] {
|
|
top: unset;
|
|
float: unset;
|
|
margin-right: unset;
|
|
}
|
|
}
|
|
|
|
.comment-create__label-wrapper {
|
|
select {
|
|
margin: 2px 0 1px 0;
|
|
height: 1.4rem;
|
|
background-color: var(--color-header-button);
|
|
}
|
|
}
|
|
|
|
.button-toggle {
|
|
background-color: rgba(var(--color-header-button-base), 0.4) !important;
|
|
&:hover {
|
|
background-color: rgba(var(--color-header-button-base), 0.9) !important;
|
|
}
|
|
}
|
|
.button-toggle--active {
|
|
background-color: rgba(var(--color-header-button-base), 0.9) !important;
|
|
}
|
|
.button--alt {
|
|
background-color: rgba(var(--color-header-button-base), 0.9);
|
|
}
|
|
|
|
.emote-selector__items,
|
|
.sticker-selector__items {
|
|
.button--file-action {
|
|
background: unset;
|
|
}
|
|
}
|
|
|
|
.form-field__two-column {
|
|
display: flex;
|
|
align-items: center;
|
|
.comment-create__label {
|
|
padding-top: 2px;
|
|
}
|
|
.comment__char-count-mde {
|
|
padding-top: 2px;
|
|
padding-right: 0;
|
|
align-self: unset;
|
|
}
|
|
}
|
|
|
|
.livestream__chat {
|
|
border-top: 1px solid var(--color-border);
|
|
}
|
|
|
|
select .button {
|
|
background-color: var(--mui-button);
|
|
}
|
|
|
|
.tab__divider {
|
|
margin-top: calc(var(--tab-indicator-size) * -1 - var(--spacing-l) + 10px);
|
|
top: 0;
|
|
}
|
|
|
|
.channel-staked__wrapper {
|
|
left: -16%;
|
|
}
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
.commentCreate {
|
|
.section__actions {
|
|
.button {
|
|
background-color: var(--color-header-button);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|