修改pre样式

This commit is contained in:
whyour 2022-11-05 14:57:21 +08:00
parent 7b2c54f6a6
commit 049c73880b
3 changed files with 13 additions and 15 deletions

View File

@ -342,3 +342,8 @@ select:-webkit-autofill:focus {
width: auto !important; width: auto !important;
} }
} }
pre {
word-break: break-all !important;
white-space: break-spaces !important;
}

View File

@ -257,7 +257,6 @@ const EditModal = ({
style={{ style={{
height: '100%', height: '100%',
padding: '0 15px', padding: '0 15px',
whiteSpace: 'break-spaces',
}} }}
> >
{log} {log}

View File

@ -77,8 +77,6 @@ const CheckUpdate = ({ socketMessage }: any) => {
content: ( content: (
<pre <pre
style={{ style={{
wordBreak: 'break-all',
whiteSpace: 'pre-wrap',
paddingTop: 15, paddingTop: 15,
fontSize: 12, fontSize: 12,
fontWeight: 400, fontWeight: 400,
@ -111,16 +109,14 @@ const CheckUpdate = ({ socketMessage }: any) => {
title: '更新中...', title: '更新中...',
centered: true, centered: true,
content: ( content: (
<pre <pre
style={{ style={{
wordBreak: 'break-all', fontSize: 12,
whiteSpace: 'pre-wrap', fontWeight: 400,
fontSize: 12, }}
fontWeight: 400, >
}} {value}
> </pre>
{value}
</pre>
), ),
}); });
}; };
@ -146,8 +142,6 @@ const CheckUpdate = ({ socketMessage }: any) => {
<> <>
<pre <pre
style={{ style={{
wordBreak: 'break-all',
whiteSpace: 'pre-wrap',
fontSize: 12, fontSize: 12,
fontWeight: 400, fontWeight: 400,
}} }}