Skip to content

Commit d33a12d

Browse files
committed
fix: known bugs
1 parent 7a3025c commit d33a12d

File tree

5 files changed

+23
-5
lines changed

5 files changed

+23
-5
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React from 'react'
2+
import { css } from '@emotion/react'
3+
4+
export const BottomSafeArea = () => {
5+
return (
6+
<div
7+
className="flex flex-1 sm:hidden"
8+
css={css`
9+
height: env(safe-area-inset-bottom, 0px);
10+
`}
11+
></div>
12+
)
13+
}

src/components/ui/dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const DialogContent = React.forwardRef<
4040
<DialogPrimitive.Content
4141
ref={ref}
4242
className={cn(
43-
'rounded-t-xl sm:rounded-xl fixed max-sm:bottom-0 left-[50%] sm:top-[50%] z-50 grid w-full sm:max-w-lg md:max-w-2xl lg:max-w-3xl max-h-[90vh] overflow-y-scroll translate-x-[-50%] sm:translate-y-[-50%] gap-4 border-t sm:border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-bottom-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-bottom-[48%] md:w-full',
43+
'rounded-t-xl sm:rounded-xl fixed max-sm:bottom-0 max-sm:pb-10 left-[50%] sm:top-[50%] z-50 grid w-full sm:max-w-lg md:max-w-2xl lg:max-w-3xl max-h-[90vh] overflow-y-scroll translate-x-[-50%] sm:translate-y-[-50%] gap-4 border-t sm:border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-bottom-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-bottom-[48%] md:w-full',
4444
className,
4545
)}
4646
{...props}

src/pages/Home/components/SetHostModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const SetHostModal: React.FC = () => {
9494
</div>
9595

9696
<DialogFooter>
97-
<Button className="mt-3" onClick={() => onAddNewProfile()}>
97+
<Button className="mt-3 sm:mt-0" onClick={() => onAddNewProfile()}>
9898
{t('landing.add_new_host')}
9999
</Button>
100100
</DialogFooter>

src/pages/Profiles/Manage/Manage.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ const ManageProfiles = () => {
3737
undefined,
3838
)
3939

40+
const isProfileReloadSupport = useVersionSupport({
41+
ios: true,
42+
macos: true,
43+
})
4044
const isProfileManagementSupport = useVersionSupport({
4145
macos: '4.0.6',
4246
})
@@ -80,7 +84,7 @@ const ManageProfiles = () => {
8084
console.error(err)
8185
toast.error(t('reload_profile_failed'))
8286
}
83-
}, [confirm, t])
87+
}, [confirm, mutateCurrentProfile, t])
8488

8589
const onSelectProfile = useCallback(
8690
async (newProfile: string) => {
@@ -108,7 +112,7 @@ const ManageProfiles = () => {
108112
toast.error(t('select_profile_failed'))
109113
}
110114
},
111-
[confirm, t],
115+
[confirm, mutateCurrentProfile, t],
112116
)
113117

114118
useEffect(() => {
@@ -130,6 +134,7 @@ const ManageProfiles = () => {
130134
<DataRowMain
131135
className="flex"
132136
disabled={
137+
!isProfileReloadSupport ||
133138
isCurrentProfileInvalid ||
134139
isLoadingCurrentProfileValidation ||
135140
isValidatingCurrentProfileValidation

src/pages/Requests/components/RequestModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const RequestModal: React.FC<RequestModalProps> = ({ req, ...props }) => {
105105
</TabList>
106106

107107
<TabPanel>
108-
<div className="space-y-4 mb-5">
108+
<div className="space-y-4">
109109
<DataGroup responsiveTitle={false}>
110110
<DataRowMain responsiveFont={false}>
111111
<div>{t('requests.date')}</div>

0 commit comments

Comments
 (0)