diff --git a/src/components/_shared/SolidSwiper/SolidSwiper.tsx b/src/components/_shared/SolidSwiper/SolidSwiper.tsx index 3037127f..4417dd06 100644 --- a/src/components/_shared/SolidSwiper/SolidSwiper.tsx +++ b/src/components/_shared/SolidSwiper/SolidSwiper.tsx @@ -316,18 +316,18 @@ export const SolidSwiper = (props: Props) => { type="text" class={clsx(styles.input, styles.title)} placeholder={t('Enter image title')} - value={props.images[slideIndex()].title} + value={props.images[slideIndex()]?.title} onChange={(event) => handleSlideDescriptionChange(slideIndex(), 'title', event.target.value)} /> handleSlideDescriptionChange(slideIndex(), 'source', event.target.value)} /> setSlideBody(value)} diff --git a/src/components/_shared/SolidSwiper/Swiper.module.scss b/src/components/_shared/SolidSwiper/Swiper.module.scss index 02044bb0..33a4eb1e 100644 --- a/src/components/_shared/SolidSwiper/Swiper.module.scss +++ b/src/components/_shared/SolidSwiper/Swiper.module.scss @@ -93,8 +93,9 @@ $navigation-reserve: 32px; position: absolute; top: 16px; right: 16px; - background: rgba(#000, 0.3); + background: rgba(var(--default-color), 0.3); cursor: pointer; + z-index: 12; display: none; .icon { @@ -129,14 +130,14 @@ $navigation-reserve: 32px; background: var(--placeholder-color-semi); position: relative; - &:hover .action { - display: flex; - } - img { max-height: 100%; } } + + &:hover .action { + display: flex; + } } &.editorMode { .holder {