♻️ Change overflow:scroll to overflow:auto

This commit is contained in:
Baptiste Arnaud
2024-01-25 16:35:16 +01:00
parent 0f245b8e57
commit ab010657b2
29 changed files with 28 additions and 55 deletions

View File

@@ -28,7 +28,7 @@ export const MyAccountForm = () => {
}
return (
<Stack spacing="6" w="full" overflowY="scroll">
<Stack spacing="6" w="full" overflowY="auto">
<HStack spacing={6}>
<Avatar
size="lg"

View File

@@ -152,7 +152,7 @@ export const ButtonsItemNode = ({ item, indices, isMouseOver }: Props) => {
<PopoverArrow bgColor={arrowColor} />
<PopoverBody
py="6"
overflowY="scroll"
overflowY="auto"
maxH="400px"
shadow="lg"
ref={ref}

View File

@@ -127,7 +127,7 @@ export const PictureChoiceItemNode = ({
<PopoverArrow />
<PopoverBody
py="6"
overflowY="scroll"
overflowY="auto"
maxH="400px"
shadow="lg"
ref={ref}

View File

@@ -109,7 +109,7 @@ export const ConditionItemNode = ({ item, isMouseOver, indices }: Props) => {
<PopoverArrow />
<PopoverBody
py="6"
overflowY="scroll"
overflowY="auto"
maxH="400px"
shadow="lg"
ref={ref}

View File

@@ -241,7 +241,7 @@ const CollaborationTypeMenuButton = ({
<ReadableCollaborationType type={type} />
</MenuButton>
<MenuList minW={0}>
<Stack maxH={'35vh'} overflowY="scroll" spacing="0">
<Stack maxH={'35vh'} overflowY="auto" spacing="0">
<MenuItem onClick={() => onChange(CollaborationType.READ)}>
<ReadableCollaborationType type={CollaborationType.READ} />
</MenuItem>

View File

@@ -116,7 +116,7 @@ export const CredentialsDropdown = ({
</Text>
</MenuButton>
<MenuList>
<Stack maxH={'35vh'} overflowY="scroll" spacing="0">
<Stack maxH={'35vh'} overflowY="auto" spacing="0">
{defaultCredentialLabel && (
<MenuItem
maxW="500px"

View File

@@ -103,7 +103,7 @@ export const CustomDomainsDropdown = ({
</Text>
</MenuButton>
<MenuList maxW="500px" shadow="lg">
<Stack maxH={'35vh'} overflowY="scroll" spacing="0">
<Stack maxH={'35vh'} overflowY="auto" spacing="0">
{(data?.customDomains ?? []).map((customDomain) => (
<Button
role="menuitem"

View File

@@ -112,8 +112,7 @@ export const BlocksSideBar = () => {
bgColor={useColorModeValue('white', 'gray.900')}
spacing={6}
userSelect="none"
overflowY="scroll"
className="hide-scrollbar"
overflowY="auto"
>
<Flex justifyContent="flex-end">
<Tooltip

View File

@@ -134,7 +134,7 @@ export const ForgedCredentialsDropdown = ({
</Text>
</MenuButton>
<MenuList>
<Stack maxH={'35vh'} overflowY="scroll" spacing="0">
<Stack maxH={'35vh'} overflowY="auto" spacing="0">
{data?.credentials.map((credentials) => (
<MenuItem
role="menuitem"

View File

@@ -69,7 +69,7 @@ export const SettingsPopoverContent = ({ onExpandClick, ...props }: Props) => {
<PopoverArrow bgColor={arrowColor} />
<PopoverBody
py="3"
overflowY="scroll"
overflowY="auto"
maxH="400px"
ref={ref}
shadow="lg"

View File

@@ -27,13 +27,7 @@ export const ApiPreviewInstructions = (props: StackProps) => {
}`
return (
<Stack
spacing={10}
overflowY="scroll"
className="hide-scrollbar"
w="full"
{...props}
>
<Stack spacing={10} overflowY="auto" w="full" {...props}>
<OrderedList spacing={6} px="1">
<ListItem>
All your requests need to be authenticated with an API token.{' '}

View File

@@ -68,8 +68,7 @@ export const WhatsAppPreviewInstructions = (props: StackProps) => {
<Stack
as="form"
spacing={4}
overflowY="scroll"
className="hide-scrollbar"
overflowY="auto"
w="full"
px="1"
onSubmit={sendWhatsAppPreviewStartMessage}

View File

@@ -71,7 +71,7 @@ const LogCard = ({ log }: { log: Log }) => {
</AccordionButton>
<AccordionPanel
as="pre"
overflow="scroll"
overflow="auto"
borderWidth="1px"
borderRadius="md"
>

View File

@@ -232,7 +232,7 @@ export const ResultsTable = ({
</HStack>
<Box
ref={tableWrapper}
overflow="scroll"
overflow="auto"
rounded="md"
data-testid="results-table"
backgroundImage={`linear-gradient(to right, ${background}, ${background}), linear-gradient(to right, ${background}, ${background}),linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0)),linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0));`}

View File

@@ -68,13 +68,7 @@ const TableSettingsMenu = ({
switch (selectedMenu) {
case 'columnSettings':
return (
<PopoverBody
as={Stack}
spacing="4"
p="4"
maxH="450px"
overflowY="scroll"
>
<PopoverBody as={Stack} spacing="4" p="4" maxH="450px" overflowY="auto">
<ColumnSettings
resultHeader={resultHeader}
columnVisibility={columnVisibility}

View File

@@ -56,7 +56,7 @@ export const SettingsSideMenu = () => {
borderRightWidth={1}
pt={10}
spacing={10}
overflowY="scroll"
overflowY="auto"
pb="20"
>
<Heading fontSize="xl" textAlign="center">

View File

@@ -86,8 +86,7 @@ export const TemplatesModal = ({
borderRightWidth={1}
justify="space-between"
flexShrink={0}
overflowY="scroll"
className="hide-scrollbar"
overflowY="auto"
>
<Stack spacing={5}>
<Stack spacing={2}>

View File

@@ -65,7 +65,7 @@ export const ThemeSideMenu = () => {
borderRightWidth={1}
pt={10}
spacing={10}
overflowY="scroll"
overflowY="auto"
pb="20"
position="relative"
>

View File

@@ -98,7 +98,7 @@ const WorkspaceRoleMenuButton = ({
{convertWorkspaceRoleToReadable(role)}
</MenuButton>
<MenuList minW={0}>
<Stack maxH={'35vh'} overflowY="scroll" spacing="0">
<Stack maxH={'35vh'} overflowY="auto" spacing="0">
<MenuItem onClick={() => onChange(WorkspaceRole.ADMIN)}>
{convertWorkspaceRoleToReadable(WorkspaceRole.ADMIN)}
</MenuItem>

View File

@@ -139,8 +139,7 @@ export const WorkspaceSettingsModal = ({
size="sm"
justifyContent="flex-start"
pl="4"
overflow="scroll"
className="hide-scrollbar"
overflow="auto"
>
{t('workspace.settings.modal.menu.billingAndUsage.label')}
</Button>