fix: some minor ui issues (#2058)

This commit is contained in:
Peng Xiao
2023-04-21 13:56:42 +08:00
committed by GitHub
parent 01115f8957
commit 5a124831b8
2 changed files with 13 additions and 12 deletions

View File

@@ -74,6 +74,7 @@ export const OperationCell: React.FC<OperationCellProps> = ({
> >
{favorite ? t('Remove from favorites') : t('Add to Favorites')} {favorite ? t('Remove from favorites') : t('Add to Favorites')}
</MenuItem> </MenuItem>
{!environment.isDesktop && (
<MenuItem <MenuItem
onClick={() => { onClick={() => {
onOpenPageInNewTab(id); onOpenPageInNewTab(id);
@@ -82,6 +83,7 @@ export const OperationCell: React.FC<OperationCellProps> = ({
> >
{t('Open in new tab')} {t('Open in new tab')}
</MenuItem> </MenuItem>
)}
{!pageMeta.isRootPinboard && ( {!pageMeta.isRootPinboard && (
<MoveTo <MoveTo
metas={metas} metas={metas}

View File

@@ -26,6 +26,7 @@ const StyledLoadingContainer = styled('div')(() => {
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
color: '#6880FF', color: '#6880FF',
flexDirection: 'column',
h1: { h1: {
fontSize: '2em', fontSize: '2em',
marginTop: '15px', marginTop: '15px',
@@ -38,10 +39,8 @@ export const PageLoading = ({ text }: { text?: string }) => {
const { t } = useTranslation(); const { t } = useTranslation();
return ( return (
<StyledLoadingContainer> <StyledLoadingContainer>
<div className="wrapper">
<Loading /> <Loading />
<h1>{text ? text : t('Loading')}</h1> <h1>{text ? text : t('Loading')}</h1>
</div>
</StyledLoadingContainer> </StyledLoadingContainer>
); );
}; };