Skip to content

Commit 05ef25a

Browse files
authored
Update the Compare slider start position to the middle (#4052)
1 parent 86aeeb8 commit 05ef25a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/templates/thumbnails/CompareSliderThumbnail.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ describe('CompareSliderThumbnail', () => {
6363
it('positions slider based on default value', () => {
6464
const wrapper = mountThumbnail()
6565
const divider = wrapper.find('.bg-white\\/30')
66-
expect(divider.attributes('style')).toContain('left: 21%')
66+
expect(divider.attributes('style')).toContain('left: 50%')
6767
})
6868

6969
it('passes isHovered prop to BaseThumbnail', () => {

src/components/templates/thumbnails/CompareSliderThumbnail.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import { ref, watch } from 'vue'
3838
3939
import BaseThumbnail from '@/components/templates/thumbnails/BaseThumbnail.vue'
4040
41-
const SLIDER_START_POSITION = 21
41+
const SLIDER_START_POSITION = 50
4242
4343
const { baseImageSrc, overlayImageSrc, isHovered, isVideo } = defineProps<{
4444
baseImageSrc: string

0 commit comments

Comments
 (0)