From 1022e1f098a6fb14b7219d92f83935ebebeb5748 Mon Sep 17 00:00:00 2001 From: NetMan <13informatyka14@gmail.com> Date: Tue, 20 Feb 2024 17:24:34 +0100 Subject: [PATCH] Fix scrollbar overflow when more elements on page --- package.json | 2 +- style.css | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 54b6889..f27930a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "odin-simple-image-slider", - "version": "1.0.0", + "version": "1.0.1", "description": "Simple image slider", "main": "index.js", "scripts": { diff --git a/style.css b/style.css index 54def7c..9031ea7 100644 --- a/style.css +++ b/style.css @@ -2,6 +2,7 @@ overflow: hidden; height: 100dvh; width: 100vw; + max-width: 100%; } .slider-image-container { @@ -55,4 +56,4 @@ cursor: pointer; transform: scale(1.5); stroke: white; -} \ No newline at end of file +}