From f7ea3479f6694743c9b7f4c6a59f64cca298efd0 Mon Sep 17 00:00:00 2001 From: Tim Fischbach Date: Thu, 20 Jun 2024 15:46:02 +0200 Subject: [PATCH] Fix section item view Do not show transition before first item. Fix position of indicators. --- .../scrolled/package/src/editor/views/SectionItemView.js | 2 +- .../package/src/editor/views/SectionItemView.module.css | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/entry_types/scrolled/package/src/editor/views/SectionItemView.js b/entry_types/scrolled/package/src/editor/views/SectionItemView.js index f071ad8e4..6546623dc 100644 --- a/entry_types/scrolled/package/src/editor/views/SectionItemView.js +++ b/entry_types/scrolled/package/src/editor/views/SectionItemView.js @@ -12,7 +12,7 @@ import styles from './SectionItemView.module.css'; export const SectionItemView = Marionette.ItemView.extend({ tagName: 'li', - className: `${styles.root}`, + className: `${styles.root} ${styles.withTransition}`, mixins: [modelLifecycleTrackingView({classNames: styles})], diff --git a/entry_types/scrolled/package/src/editor/views/SectionItemView.module.css b/entry_types/scrolled/package/src/editor/views/SectionItemView.module.css index 6b40be201..3c923d7f1 100644 --- a/entry_types/scrolled/package/src/editor/views/SectionItemView.module.css +++ b/entry_types/scrolled/package/src/editor/views/SectionItemView.module.css @@ -5,7 +5,12 @@ position: relative; } +.withTransition { + composes: sectionWithTransition from './outline.module.css'; +} + .outline { + position: relative; border: solid selectionWidth transparent; border-radius: rounded(); padding: 1px;