fix: style

This commit is contained in:
linonetwo 2025-02-02 00:06:14 +08:00
parent bd2b8a4449
commit 95bc83022f
4 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,4 @@
import styled, { css } from 'styled-components';
import { styled, css } from 'styled-components';
export const RootStyle = styled.div`
.Mui-selected,

View file

@ -1,6 +1,6 @@
import { Autocomplete, Button, Fab, Paper, TextField, Tooltip, Typography } from '@mui/material';
import { useTranslation } from 'react-i18next';
import styled, { css } from 'styled-components';
import { styled, css } from 'styled-components';
export const CreateContainer = styled(Paper)`
padding: 10px;
@ -12,11 +12,13 @@ export const LocationPickerContainer = styled.div`
display: flex;
flex-direction: row;
margin-bottom: 10px;
width: 100%;
background-color: ${({ theme }) => theme.palette.background.paper};
color: ${({ theme }) => theme.palette.text.primary};
`;
export const LocationPickerInput = styled(TextField)`
background-color: ${({ theme }) => theme.palette.background.paper};
flex: 1;
`;
LocationPickerInput.defaultProps = {
fullWidth: true,

View file

@ -280,6 +280,7 @@ export default function EditWorkspace(): React.JSX.Element {
</Tooltip>
<AccordionDetails>
<TextField
fullWidth
id='outlined-full-width'
label={t('EditWorkspace.Path')}
helperText={t('EditWorkspace.PathDescription')}
@ -292,6 +293,7 @@ export default function EditWorkspace(): React.JSX.Element {
/>
{isSubWiki && mainWikiToLink && (
<TextField
fullWidth
id='outlined-full-width'
label={t('EditWorkspace.MainWorkspacePath')}
helperText={t('EditWorkspace.PathDescription')}

View file

@ -2,7 +2,7 @@
import { Settings as SettingsIcon, Upgrade as UpgradeIcon } from '@mui/icons-material';
import { t } from 'i18next';
import SimpleBar from 'simplebar-react';
import styled, { css } from 'styled-components';
import { styled, css } from 'styled-components';
import is, { isNot } from 'typescript-styled-is';
import { latestStableUpdateUrl } from '@/constants/urls';