Skip to content

Commit

Permalink
Merge pull request #476 from sparcs-kaist/fix/loading-title-position
Browse files Browse the repository at this point in the history
fix: align 'loading' text to center
  • Loading branch information
Sanghou authored Mar 27, 2024
2 parents e4da96b + 4d82422 commit d2a4cb7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
26 changes: 18 additions & 8 deletions packages/web/src/components/atoms/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,21 @@ export const Text = styled.p<{
variant?: Variants;
color?: Color;
position?: "absolute" | "static";
}>(({ variant = "body", color = "black", theme, position = "static" }) => [
css({
color: theme.colors[color],
position,
whiteSpace: "pre-line",
}),
textStyles[variant],
]);
textAlign?: "center" | "left";
}>(
({
variant = "body",
color = "black",
theme,
position = "static",
textAlign = "left",
}) => [
css({
color: theme.colors[color],
position,
whiteSpace: "pre-line",
textAlign,
}),
textStyles[variant],
],
);
2 changes: 1 addition & 1 deletion packages/web/src/components/organisms/ChatSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const ChatSection: React.FC = () => {
</>
))}
{hasMore && (
<Text ref={ref} variant="body" color="gray400">
<Text ref={ref} variant="body" color="gray400" textAlign="center">
로딩 중
</Text>
)}
Expand Down

0 comments on commit d2a4cb7

Please sign in to comment.