Web:Components:Scrollbar: Added paddingRight 8px for mobile view for Scrollbar.

This commit is contained in:
Vlada Gazizova 2022-05-05 13:46:39 +03:00
parent 664135b164
commit 085651a2b1

View File

@ -1,6 +1,6 @@
import React from "react";
import PropTypes from "prop-types";
import { isMobile } from "@appserver/components/utils/device";
import StyledScrollbar from "./styled-scrollbar";
const Scrollbar = React.forwardRef((props, ref) => {
const scrollbarType = {
@ -40,7 +40,7 @@ const Scrollbar = React.forwardRef((props, ref) => {
borderRadius: "inherit",
},
view: {
paddingRight: "16px",
paddingRight: isMobile() ? "8px" : "16px",
outline: "none",
WebkitOverflowScrolling: "auto",
},