Skip to content

Commit 0e4f052

Browse files
committed
fix(problems): 文字换行导致样式被破坏
1 parent 6b40bbe commit 0e4f052

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/content/pages/problems/Timer.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const Content = styled.div`
3434
border-right-width: 0;
3535
/* margin-left: 15px; */
3636
padding: 6px 15px;
37+
white-space: nowrap;
3738
`
3839

3940
const Button = styled.button<{
@@ -64,7 +65,7 @@ const Button = styled.button<{
6465
`}
6566
`
6667

67-
const Clock: FC<{ beta?: boolean }> = ({ beta }) => {
68+
const Timer: FC<{ beta?: boolean }> = ({ beta }) => {
6869
const pathnames = location.pathname.split('/').filter(Boolean)
6970
const slug = pathnames[1]
7071

@@ -400,4 +401,4 @@ const Clock: FC<{ beta?: boolean }> = ({ beta }) => {
400401
)
401402
}
402403

403-
export default Clock
404+
export default Timer

0 commit comments

Comments
 (0)