mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 05:59:26 +08:00
All of the behaviour in this PR only affects the "unified new" view in the UI. - Replace the experimental `/new` dismiss action with a `DComboButton` that changes its label and dismiss scope for All, Topics, and Replies - Add a "Dismiss and stop tracking" dropdown action that applies the same subset-specific dismiss behavior and untracks those topics - Keep the split-button chevron visible for `floating_dismiss_topics_on_mobile` and scope the new UI to the experimental discovery new view
45 lines
1 KiB
SCSS
Vendored
45 lines
1 KiB
SCSS
Vendored
@use "lib/viewport";
|
|
|
|
.uc-floating-dismiss-topics-on-mobile {
|
|
@include viewport.until(sm) {
|
|
.dismiss-container-top {
|
|
position: fixed;
|
|
bottom: calc(env(safe-area-inset-bottom) + var(--space-4));
|
|
right: 50%;
|
|
transform: translateX(50%);
|
|
z-index: 2;
|
|
transition: bottom 0.3s ease;
|
|
|
|
.dismiss-read {
|
|
box-shadow: var(--shadow-dropdown);
|
|
}
|
|
|
|
.topic-dismiss-buttons__button .d-icon {
|
|
display: none;
|
|
}
|
|
|
|
.topic-dismiss-buttons__menu .d-icon {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.footer-nav-visible & {
|
|
bottom: calc(
|
|
var(--footer-nav-height) + env(safe-area-inset-bottom) +
|
|
var(--space-4)
|
|
);
|
|
}
|
|
}
|
|
|
|
.dismiss-container-bottom {
|
|
.topic-dismiss-buttons__menu {
|
|
display: none;
|
|
}
|
|
|
|
.topic-dismiss-buttons__button {
|
|
border-top-right-radius: var(--d-button-border-radius);
|
|
border-bottom-right-radius: var(--d-button-border-radius);
|
|
border-right: var(--d-button-default-border);
|
|
}
|
|
}
|
|
}
|
|
}
|