Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4e6b4a6c80 |
@@ -1,41 +0,0 @@
|
|||||||
import { apiInitializer } from "discourse/lib/api";
|
|
||||||
import { wantsNewWindow } from "discourse/lib/intercept-click";
|
|
||||||
|
|
||||||
export default apiInitializer((api) => {
|
|
||||||
api.registerBehaviorTransformer(
|
|
||||||
"topic-list-item-click",
|
|
||||||
({ context, next }) => {
|
|
||||||
const event = context.event;
|
|
||||||
const target = event.target;
|
|
||||||
const topic = context.topic;
|
|
||||||
|
|
||||||
const excludedSelectors = [
|
|
||||||
"a:not(.title)",
|
|
||||||
"button",
|
|
||||||
".bulk-select",
|
|
||||||
".topic-category-data",
|
|
||||||
];
|
|
||||||
|
|
||||||
const isExcluded = excludedSelectors.some((selector) =>
|
|
||||||
target.closest(selector)
|
|
||||||
);
|
|
||||||
|
|
||||||
if (isExcluded) {
|
|
||||||
return next();
|
|
||||||
}
|
|
||||||
|
|
||||||
const mainLink = target.closest(".title, .main-link, .topic-list-item");
|
|
||||||
if (mainLink) {
|
|
||||||
if (wantsNewWindow(event)) {
|
|
||||||
window.open(topic.lastUnreadUrl, "_blank");
|
|
||||||
} else {
|
|
||||||
event.preventDefault();
|
|
||||||
context.navigateToTopic(topic, topic.lastUnreadUrl);
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
next();
|
|
||||||
}
|
|
||||||
);
|
|
||||||
});
|
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
@use "lib/viewport";
|
|
||||||
|
|
||||||
.full-page-chat.full-page-chat-sidebar-enabled {
|
.full-page-chat.full-page-chat-sidebar-enabled {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
@@ -25,22 +23,6 @@ body.has-full-page-chat {
|
|||||||
|
|
||||||
.chat-drawer-outlet-container {
|
.chat-drawer-outlet-container {
|
||||||
z-index: z("composer", "content");
|
z-index: z("composer", "content");
|
||||||
|
|
||||||
.peek-mode-active & {
|
|
||||||
padding-bottom: 0;
|
|
||||||
left: unset;
|
|
||||||
right: var(--main-grid-gap);
|
|
||||||
|
|
||||||
&:has(.is-expanded) {
|
|
||||||
z-index: calc(z("composer", "dropdown") + 1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.chat-drawer {
|
|
||||||
.peek-mode-active & {
|
|
||||||
max-width: 90vw;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-drawer .channels-list-container .chat-channel-row {
|
.chat-drawer .channels-list-container .chat-channel-row {
|
||||||
@@ -74,9 +56,3 @@ body.has-full-page-chat {
|
|||||||
.chat-drawer-active.chat-drawer-expanded .chat-composer-dropdown__menu-content {
|
.chat-drawer-active.chat-drawer-expanded .chat-composer-dropdown__menu-content {
|
||||||
z-index: z("composer", "content") + 1;
|
z-index: z("composer", "content") + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-replying-indicator-container {
|
|
||||||
@include viewport.from(sm) {
|
|
||||||
margin-left: calc(0.65em + 0.2rem);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -19,8 +19,6 @@
|
|||||||
|
|
||||||
.grippie {
|
.grippie {
|
||||||
background: var(--tertiary-low);
|
background: var(--tertiary-low);
|
||||||
border-top-right-radius: var(--d-border-radius);
|
|
||||||
border-top-left-radius: var(--d-border-radius);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-selector,
|
.user-selector,
|
||||||
|
|||||||
@@ -105,3 +105,7 @@ input[type="color"]:focus,
|
|||||||
.period-chooser-header {
|
.period-chooser-header {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.d-modal__container {
|
||||||
|
border-radius: var(--d-border-radius);
|
||||||
|
}
|
||||||
|
|||||||
@@ -359,7 +359,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.topic-list-item {
|
.topic-list-item {
|
||||||
cursor: pointer;
|
|
||||||
background: var(--d-content-background);
|
background: var(--d-content-background);
|
||||||
box-shadow: 0 0 12px 1px var(--topic-card-shadow);
|
box-shadow: 0 0 12px 1px var(--topic-card-shadow);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user