fix: Export Button Content Shift; chore: bump axios and add logging (#3668)

* chore: bump axios version

* fix: export button glitch

* fix: remove console logs
This commit is contained in:
Marco Beretta 2024-08-17 00:03:27 +02:00 committed by GitHub
parent 16c9aed1bb
commit 9f4c516615
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 22 additions and 18 deletions

View file

@ -3,7 +3,7 @@ import { Upload, Share2 } from 'lucide-react';
import { useRecoilValue } from 'recoil';
import { ShareButton } from '~/components/Conversations/ConvoOptions';
import { Button, DropdownPopup } from '~/components/ui';
import useLocalize from '~/hooks/useLocalize';
import { useMediaQuery, useLocalize } from '~/hooks';
import { ExportModal } from '../Nav';
import store from '~/store';
@ -17,6 +17,7 @@ export default function ExportAndShareMenu({
const [isPopoverActive, setIsPopoverActive] = useState(false);
const [showExports, setShowExports] = useState(false);
const [showShareDialog, setShowShareDialog] = useState(false);
const isSmallScreen = useMediaQuery('(max-width: 768px)');
const exportable =
conversation &&
@ -73,6 +74,7 @@ export default function ExportAndShareMenu({
}
items={dropdownItems}
anchor="bottom end"
className={isSmallScreen ? '' : 'absolute right-0 top-0 mt-2'}
/>
{showShareDialog && conversation.conversationId != null && (
<ShareButton