fix(ui): alignment & overflow on gallery header

This commit is contained in:
psychedelicious 2024-07-24 12:28:53 +10:00
parent 44284d671c
commit ca8441a32f
3 changed files with 10 additions and 11 deletions

View File

@ -16,7 +16,6 @@ const BoardsListWrapper = () => {
const allowPrivateBoards = useAppSelector((s) => s.config.allowPrivateBoards); const allowPrivateBoards = useAppSelector((s) => s.config.allowPrivateBoards);
return ( return (
<>
<Box position="relative" w="full" h="full"> <Box position="relative" w="full" h="full">
<Box position="absolute" top={0} right={0} bottom={0} left={0}> <Box position="absolute" top={0} right={0} bottom={0} left={0}>
<OverlayScrollbarsComponent defer style={overlayScrollbarsStyles} options={overlayScrollbarsParams.options}> <OverlayScrollbarsComponent defer style={overlayScrollbarsStyles} options={overlayScrollbarsParams.options}>
@ -25,7 +24,6 @@ const BoardsListWrapper = () => {
</OverlayScrollbarsComponent> </OverlayScrollbarsComponent>
</Box> </Box>
</Box> </Box>
</>
); );
}; };
export default memo(BoardsListWrapper); export default memo(BoardsListWrapper);

View File

@ -10,14 +10,14 @@ export const GalleryHeader = memo(() => {
if (projectName && projectUrl) { if (projectName && projectUrl) {
return ( return (
<Flex gap={2} w="full" alignItems="center" justifyContent="space-evenly" pe={2}> <Flex gap={2} w="full" alignItems="center" justifyContent="space-evenly" pe={2}>
<Text fontSize="md" fontWeight="semibold" noOfLines={1} w="full" textAlign="center"> <Text fontSize="md" fontWeight="semibold" noOfLines={1} wordBreak="break-all" w="full" textAlign="center">
<Link href={projectUrl}>{projectName}</Link> <Link href={projectUrl}>{projectName}</Link>
</Text> </Text>
</Flex> </Flex>
); );
} }
return <></>; return null;
}); });
GalleryHeader.displayName = 'GalleryHeader'; GalleryHeader.displayName = 'GalleryHeader';

View File

@ -60,6 +60,7 @@ const ImageGalleryContent = () => {
<GalleryHeader /> <GalleryHeader />
<Flex alignItems="center" justifyContent="space-between" w="full"> <Flex alignItems="center" justifyContent="space-between" w="full">
<Button <Button
w={112}
size="sm" size="sm"
variant="ghost" variant="ghost"
onClick={handleToggleBoardPanel} onClick={handleToggleBoardPanel}