Various commenting improvements (#4938)
* fix: New threads attached to previous as replies * fix: Cannot use floating toolbar properly in comments * perf: Avoid re-writing history on click in editor * fix: Comment on text selection * fix: 'Copy link' on comments uses wrong hostname * Show comment buttons on input focus rather than non-empty input Increase maximum sidebar size * Allow opening comments from document menu * fix: Clicking comment menu should not focus thread
This commit is contained in:
@@ -2,7 +2,6 @@ import queryString from "query-string";
|
||||
import Collection from "~/models/Collection";
|
||||
import Comment from "~/models/Comment";
|
||||
import Document from "~/models/Document";
|
||||
import env from "~/env";
|
||||
|
||||
export function homePath(): string {
|
||||
return "/home";
|
||||
@@ -138,7 +137,7 @@ export function notFoundUrl(): string {
|
||||
}
|
||||
|
||||
export function urlify(path: string): string {
|
||||
return `${env.URL}${path}`;
|
||||
return `${window.location.host}${path}`;
|
||||
}
|
||||
|
||||
export const matchDocumentSlug =
|
||||
|
||||
Reference in New Issue
Block a user