stable
Clone or download
Read-only
Toolbar in artidoc is marked as sticky. The box-shadow (sticky-header-shadow) is here to indicate to the user that some content is being scrolled under it. Therefore this box-shadow should be displayed only when the toolbar is "stuck". Implementation note: the combination of plateform banner, project banner, and sticky header make it difficult to use IntersectionObserver so we use scroll event instead. Additionally, the position of the toolbar is now adapted accordingly to the presence of project banner, platform banner, or both. Part of story #38627: Choice of a new Rich Text Editor Change-Id: I8f14083dbaaac11da46b66145649b5ff38b2fe76
Modified Files
Name | ||||
---|---|---|---|---|
M | lib/frontend/prose-mirror-editor-toolbar/src/elements/styles.scss | +0 | −1 | Go to diff View file |
M | plugins/artidoc/scripts/artidoc/src/components/toolbar/EditorToolbar.vue | +41 | −2 | Go to diff View file |
A | plugins/artidoc/scripts/artidoc/src/helpers/observe-sticky-toolbar.ts | +50 | −0 | Go to diff View file |