fix: Wide selection of comment toolbar fixes (#5160
* fix: Margin on floating toolbar fix: Flash of toolbar on wide screens * fix: Nesting of comment marks * fix: Post button not visible when there is a draft comment, makes it look like the comment is saved fix: Styling of link editor results now matches other menus fix: Allow small link editor in comments sidebar * fix: Cannot use arrow keys to navigate suggested links Added animation to link suggestions Added mixin for text ellipsis * fix: Link input appears non-rounded when no creation option * Accidental removal
This commit is contained in:
@@ -45,6 +45,7 @@ import usePolicy from "~/hooks/usePolicy";
|
||||
import useRequest from "~/hooks/useRequest";
|
||||
import useStores from "~/hooks/useStores";
|
||||
import useToasts from "~/hooks/useToasts";
|
||||
import { ellipsis } from "~/styles";
|
||||
import { MenuItem } from "~/types";
|
||||
import { editDocumentUrl, newDocumentPath } from "~/utils/routeHelpers";
|
||||
|
||||
@@ -351,9 +352,7 @@ const Style = styled.div`
|
||||
`;
|
||||
|
||||
const CollectionName = styled.div`
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
${ellipsis()}
|
||||
`;
|
||||
|
||||
export default observer(DocumentMenu);
|
||||
|
||||
@@ -12,6 +12,7 @@ import CollectionIcon from "~/components/Icons/CollectionIcon";
|
||||
import useCurrentTeam from "~/hooks/useCurrentTeam";
|
||||
import usePolicy from "~/hooks/usePolicy";
|
||||
import useStores from "~/hooks/useStores";
|
||||
import { ellipsis } from "~/styles";
|
||||
import { MenuItem } from "~/types";
|
||||
import { newDocumentPath } from "~/utils/routeHelpers";
|
||||
|
||||
@@ -67,9 +68,7 @@ function NewTemplateMenu() {
|
||||
}
|
||||
|
||||
const CollectionName = styled.div`
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
${ellipsis()}
|
||||
`;
|
||||
|
||||
export default observer(NewTemplateMenu);
|
||||
|
||||
@@ -11,6 +11,7 @@ import MenuItem from "~/components/ContextMenu/MenuItem";
|
||||
import Separator from "~/components/ContextMenu/Separator";
|
||||
import useCurrentUser from "~/hooks/useCurrentUser";
|
||||
import useStores from "~/hooks/useStores";
|
||||
import { ellipsis } from "~/styles";
|
||||
import { replaceTitleVariables } from "~/utils/date";
|
||||
|
||||
type Props = {
|
||||
@@ -81,9 +82,7 @@ function TemplatesMenu({ onSelectTemplate, document }: Props) {
|
||||
|
||||
const TemplateItem = styled.div`
|
||||
text-align: left;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
${ellipsis()}
|
||||
`;
|
||||
|
||||
const Author = styled.div`
|
||||
|
||||
Reference in New Issue
Block a user