diff --git a/packages/panel/src/components/Panel.svelte b/packages/panel/src/components/Panel.svelte index 5538dcd8fe..787a3c3774 100644 --- a/packages/panel/src/components/Panel.svelte +++ b/packages/panel/src/components/Panel.svelte @@ -36,7 +36,7 @@ export let isCustomAttr: boolean = true export let floatAside = false export let allowClose = true - export let useMaxWidth = false + export let useMaxWidth: boolean | undefined = undefined export let isFullSize = false diff --git a/packages/text-editor/src/components/CollaboratorEditor.svelte b/packages/text-editor/src/components/CollaboratorEditor.svelte index c38994a805..86cc9b9810 100644 --- a/packages/text-editor/src/components/CollaboratorEditor.svelte +++ b/packages/text-editor/src/components/CollaboratorEditor.svelte @@ -467,9 +467,9 @@
-
+
{#if isFormatting && !readonly} -
+
{#if comparedVersion !== undefined} -
+
{:else} -
+
{/if} @@ -714,4 +714,18 @@ .autoOverflow { overflow: auto; } + + .ref-container .formatPanel { + margin: -0.5rem -0.25rem 0.5rem; + padding: 0.375rem; + background-color: var(--body-accent); + border-radius: 0.5rem; + box-shadow: var(--button-shadow); + z-index: 1; + + &.focused { + position: sticky; + top: 1.25rem; + } + } diff --git a/packages/theme/styles/common.scss b/packages/theme/styles/common.scss index 2fae1f93af..0655b57b6f 100644 --- a/packages/theme/styles/common.scss +++ b/packages/theme/styles/common.scss @@ -306,6 +306,7 @@ color: var(--caption-color); } } + .invisible { display: none; } &-empty { display: flex; justify-content: center; @@ -420,7 +421,7 @@ } .rotated-icon { transform-origin: center; - transition: transform .3s var(--timing-rotate); + transition: transform .15s var(--timing-main); &.opened { transform: rotate(0deg); } &.closed { transform: rotate(90deg); } @@ -448,11 +449,7 @@ visibility: hidden; max-height: 0; } - &:hover .caption { - margin-bottom: 0rem; - - &.hasAttachments { margin-bottom: .5rem; } - } + &:hover .caption.hasAttachments { margin-bottom: .5rem; } } &:first-child { @@ -464,7 +461,6 @@ border-top-right-radius: .65rem; } &:last-child { - border-top: none; border-bottom-left-radius: .75rem; border-bottom-right-radius: .75rem; } @@ -472,6 +468,7 @@ border-bottom-left-radius: .65rem; border-bottom-right-radius: .65rem; } + &:last-child:not(:first-child), &:not(:first-child):not(:last-child) { border-top: none; } &:hover, diff --git a/packages/ui/src/components/Panel.svelte b/packages/ui/src/components/Panel.svelte index 6fff0b7548..c051df0878 100644 --- a/packages/ui/src/components/Panel.svelte +++ b/packages/ui/src/components/Panel.svelte @@ -20,6 +20,8 @@ import IconDetails from './icons/Details.svelte' import IconScale from './icons/Scale.svelte' import IconScaleFull from './icons/ScaleFull.svelte' + import IconMinWidth from './icons/MinWidth.svelte' + import IconMaxWidth from './icons/MaxWidth.svelte' import Scroller from './Scroller.svelte' import { deviceOptionsStore as deviceInfo } from '../../' @@ -31,12 +33,13 @@ export let withoutTitle: boolean = false export let floatAside = false export let allowClose = true - export let useMaxWidth = false + export let useMaxWidth: boolean | undefined = undefined const dispatch = createEventDispatcher() let asideFloat: boolean = false let asideShown: boolean = true + let fullSize: boolean = false $: twoRows = $deviceInfo.minWidth let oldWidth = '' @@ -99,7 +102,9 @@
- {#if isFullSize || (asideFloat && $$slots.aside && isAside)}
{/if} + {#if isFullSize || useMaxWidth !== undefined || ($$slots.aside && isAside)} +
+ {/if} {#if $$slots.aside && isAside} {:else if readonly} {#if value} {value} @@ -64,22 +72,3 @@ {:else} {/if} - -