Skip to content

Commit 2ecd9d3

Browse files
erun1012claude
andcommitted
refactor(extension-webview): remove inline styles from html, even px in OrmConverter
- move html/body/#root reset from inline style attributes to globalCss - replace odd px values in OrmConverter with even ones Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 82645f7 commit 2ecd9d3

4 files changed

Lines changed: 15 additions & 10 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<!DOCTYPE html>
2-
<html lang="ko" style="height: 100%; margin: 0">
2+
<html lang="ko">
33
<head>
44
<script>document.documentElement.setAttribute('data-theme', 'dark');</script>
55
<meta charset="UTF-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Vespertide AI Agent</title>
88
</head>
9-
<body style="height: 100%; margin: 0; padding: 0; overflow: hidden">
10-
<div id="root" style="height: 100%; margin: 0; padding: 0"></div>
9+
<body>
10+
<div id="root"></div>
1111
<script type="module" src="/src/ai-agent.tsx"></script>
1212
</body>
1313
</html>

‎apps/extension-webview/index.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<!DOCTYPE html>
2-
<html lang="ko" style="height: 100%; margin: 0">
2+
<html lang="ko">
33
<head>
44
<script>document.documentElement.setAttribute('data-theme', 'dark');</script>
55
<meta charset="UTF-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Vespertide</title>
88
</head>
9-
<body style="height: 100%; margin: 0; padding: 0; overflow: hidden">
10-
<div id="root" style="height: 100%; margin: 0; padding: 0"></div>
9+
<body>
10+
<div id="root"></div>
1111
<script type="module" src="/src/main.tsx"></script>
1212
</body>
1313
</html>

‎apps/extension-webview/src/tabs/OrmConverter.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default function OrmConverter({ state, setState }: Props) {
4141
>
4242
{/* ORM buttons */}
4343
<Box>
44-
<Box fontSize="11px" opacity={0.55} mb="8px" letterSpacing="0.03em">
44+
<Box fontSize="12px" opacity={0.55} mb="8px" letterSpacing="0.03em">
4545
변환할 대상 ORM 선택
4646
</Box>
4747
<Flex flexWrap="wrap" gap="8px">
@@ -118,7 +118,7 @@ export default function OrmConverter({ state, setState }: Props) {
118118
: '$btnSecBg'}
119119
color="$btnFg"
120120
border="none"
121-
borderRadius="3px"
121+
borderRadius="4px"
122122
fontSize="12px"
123123
cursor={canConvert ? 'pointer' : 'not-allowed'}
124124
opacity={canConvert ? 1 : 0.5}
@@ -139,7 +139,7 @@ export default function OrmConverter({ state, setState }: Props) {
139139
{/* Current source preview */}
140140
{state.ormSource && (
141141
<VStack flex={1} overflow="hidden">
142-
<Box fontSize="11px" opacity={0.55} mb="6px">
142+
<Box fontSize="12px" opacity={0.55} mb="6px">
143143
현재 스키마 ({ORM_LABELS[state.ormType]})
144144
</Box>
145145
<Box

‎apps/extension-webview/src/theme.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { keyframes } from '@devup-ui/react';
1+
import { globalCss, keyframes } from '@devup-ui/react';
2+
3+
globalCss({
4+
'html, body, #root': { height: '100%', margin: 0, padding: 0 },
5+
body: { overflow: 'hidden' },
6+
});
27

38
export const slideInRight = keyframes({
49
from: { transform: 'translateX(20px)', opacity: 0 },

0 commit comments

Comments
 (0)