diff --git a/models/notification/src/index.ts b/models/notification/src/index.ts index 90a018a7aa..7a7026d5b4 100644 --- a/models/notification/src/index.ts +++ b/models/notification/src/index.ts @@ -388,7 +388,7 @@ export function createModel (builder: Builder): void { core.space.Model, { label: notification.string.Inbox, - icon: notification.icon.Inbox, + icon: notification.icon.Notifications, alias: notificationId, hidden: true, locationResolver: notification.resolver.Location, diff --git a/packages/presentation/src/components/LiteMessageViewer.svelte b/packages/presentation/src/components/LiteMessageViewer.svelte new file mode 100644 index 0000000000..a037b5ae7f --- /dev/null +++ b/packages/presentation/src/components/LiteMessageViewer.svelte @@ -0,0 +1,26 @@ + + + +
+ +
diff --git a/packages/presentation/src/components/markup/lite/LiteNode.svelte b/packages/presentation/src/components/markup/lite/LiteNode.svelte new file mode 100644 index 0000000000..adf6330238 --- /dev/null +++ b/packages/presentation/src/components/markup/lite/LiteNode.svelte @@ -0,0 +1,30 @@ + + + +{#if node} + {@const marks = node.marks ?? []} + + + + +{/if} diff --git a/packages/presentation/src/components/markup/lite/LiteNodeContent.svelte b/packages/presentation/src/components/markup/lite/LiteNodeContent.svelte new file mode 100644 index 0000000000..7cddc88528 --- /dev/null +++ b/packages/presentation/src/components/markup/lite/LiteNodeContent.svelte @@ -0,0 +1,105 @@ + + + +{#if node} + {@const attrs = node.attrs ?? {}} + {@const nodes = node.content ?? []} + + {#if node.type === MarkupNodeType.doc} + + {:else if node.type === MarkupNodeType.text} + {node.text} + {:else if node.type === MarkupNodeType.paragraph} +

+ +

+ {:else if node.type === MarkupNodeType.blockquote} + + {:else if node.type === MarkupNodeType.horizontal_rule} + + {:else if node.type === MarkupNodeType.heading} + {@const level = toNumber(node.attrs?.level) ?? 1} + {@const element = `h${level}`} + + + + {:else if node.type === MarkupNodeType.code_block} +

+ + + +

+ {:else if node.type === MarkupNodeType.reference} + {@const objectId = toString(attrs.id)} + {@const objectClass = toString(attrs.objectclass)} + {@const objectLabel = toString(attrs.label)} + + {#if objectClass !== undefined && objectId !== undefined} + + {:else} + + {/if} + {:else if node.type === MarkupNodeType.taskList} + + {:else if node.type === MarkupNodeType.taskItem} + + {:else if node.type === MarkupNodeType.subLink} + + + + {:else} + + {/if} +{/if} diff --git a/packages/presentation/src/components/markup/lite/LiteNodes.svelte b/packages/presentation/src/components/markup/lite/LiteNodes.svelte new file mode 100644 index 0000000000..d3ec913a84 --- /dev/null +++ b/packages/presentation/src/components/markup/lite/LiteNodes.svelte @@ -0,0 +1,27 @@ + + + +{#if nodes} + {#each nodes as node} + + {/each} +{/if} diff --git a/packages/presentation/src/index.ts b/packages/presentation/src/index.ts index 2e7937c004..9306e3e849 100644 --- a/packages/presentation/src/index.ts +++ b/packages/presentation/src/index.ts @@ -47,6 +47,7 @@ export { default as BreadcrumbsElement } from './components/breadcrumbs/Breadcru export { default as ComponentExtensions } from './components/extensions/ComponentExtensions.svelte' export { default as DocCreateExtComponent } from './components/extensions/DocCreateExtComponent.svelte' export { default as SearchResult } from './components/SearchResult.svelte' +export { default as LiteMessageViewer } from './components/LiteMessageViewer.svelte' export { default as DownloadFileButton } from './components/DownloadFileButton.svelte' export { default as FileTypeIcon } from './components/FileTypeIcon.svelte' export { default } from './plugin' diff --git a/packages/theme/styles/_layouts.scss b/packages/theme/styles/_layouts.scss index f06a783b65..ee7f79a2db 100644 --- a/packages/theme/styles/_layouts.scss +++ b/packages/theme/styles/_layouts.scss @@ -108,7 +108,7 @@ li { } p { - user-select: text; + user-select:inherit; a { word-break: break-all; diff --git a/packages/ui/src/resize.ts b/packages/ui/src/resize.ts index cb02763815..aad3a64c4f 100644 --- a/packages/ui/src/resize.ts +++ b/packages/ui/src/resize.ts @@ -166,7 +166,7 @@ export const settingsSeparators: DefSeparators = [ export const mainSeparators: DefSeparators = [ { minSize: 30, size: 'auto', maxSize: 'auto' }, - { minSize: 20, size: 30, maxSize: 45, float: 'sidebar' } + { minSize: 20, size: 30, maxSize: 80, float: 'sidebar' } ] export const secondNavSeparators: DefSeparators = [{ minSize: 7, size: 7.5, maxSize: 15, float: 'navigator' }, null] diff --git a/plugins/activity-resources/src/components/BasePreview.svelte b/plugins/activity-resources/src/components/BasePreview.svelte index 95d33259c4..82ad9e51fc 100644 --- a/plugins/activity-resources/src/components/BasePreview.svelte +++ b/plugins/activity-resources/src/components/BasePreview.svelte @@ -14,7 +14,7 @@ --> diff --git a/plugins/notification-resources/src/components/DocNotifyContextCard.svelte b/plugins/notification-resources/src/components/DocNotifyContextCard.svelte index 926b1eaa61..59ab1dc4b5 100644 --- a/plugins/notification-resources/src/components/DocNotifyContextCard.svelte +++ b/plugins/notification-resources/src/components/DocNotifyContextCard.svelte @@ -354,6 +354,8 @@ .notification { position: relative; + cursor: pointer; + user-select: none; .embeddedMarker { position: absolute;