♻️ Change overflow:scroll to overflow:auto
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -127,7 +127,7 @@ export const PictureChoiceItemNode = ({
|
||||
<PopoverArrow />
|
||||
<PopoverBody
|
||||
py="6"
|
||||
overflowY="scroll"
|
||||
overflowY="auto"
|
||||
maxH="400px"
|
||||
shadow="lg"
|
||||
ref={ref}
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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.{' '}
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -71,7 +71,7 @@ const LogCard = ({ log }: { log: Log }) => {
|
||||
</AccordionButton>
|
||||
<AccordionPanel
|
||||
as="pre"
|
||||
overflow="scroll"
|
||||
overflow="auto"
|
||||
borderWidth="1px"
|
||||
borderRadius="md"
|
||||
>
|
||||
|
||||
@@ -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));`}
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -56,7 +56,7 @@ export const SettingsSideMenu = () => {
|
||||
borderRightWidth={1}
|
||||
pt={10}
|
||||
spacing={10}
|
||||
overflowY="scroll"
|
||||
overflowY="auto"
|
||||
pb="20"
|
||||
>
|
||||
<Heading fontSize="xl" textAlign="center">
|
||||
|
||||
@@ -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}>
|
||||
|
||||
@@ -65,7 +65,7 @@ export const ThemeSideMenu = () => {
|
||||
borderRightWidth={1}
|
||||
pt={10}
|
||||
spacing={10}
|
||||
overflowY="scroll"
|
||||
overflowY="auto"
|
||||
pb="20"
|
||||
position="relative"
|
||||
>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user