Skip to content

Commit e959001

Browse files
committed
fix(problem-list): 修复样式
1 parent 57e082c commit e959001

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/content/pages/problem-list/Editor.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { ChangeEventHandler, FC, useEffect, useRef, useState } from 'react'
33
import { Input } from '@/components/Input'
44
import Button from '@/components/Button'
55
import ErrorToolTip from '@/components/ErrorToolTip'
6+
import { css } from 'styled-components/macro'
67

78
interface EditorProps {
89
text?: string
@@ -55,7 +56,7 @@ const Editor: FC<EditorProps> = ({ text: initText = '', onSave, onCancel }) => {
5556

5657
return (
5758
<div
58-
css={`
59+
css={css`
5960
width: 100%;
6061
`}
6162
>
@@ -73,14 +74,14 @@ const Editor: FC<EditorProps> = ({ text: initText = '', onSave, onCancel }) => {
7374
/>
7475
</ErrorToolTip>
7576
<div
76-
css={`
77+
css={css`
7778
display: flex;
7879
justify-content: space-around;
7980
margin-top: 6px;
8081
`}
8182
>
8283
<Button
83-
css={`
84+
css={css`
8485
&& {
8586
height: 24px;
8687
background-color: #555;

0 commit comments

Comments
 (0)