Skip to content

Commit

Permalink
fix: profile name 좌측정렬
Browse files Browse the repository at this point in the history
  • Loading branch information
miro-ring committed Mar 24, 2024
1 parent 432a72e commit ee291b2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
12 changes: 10 additions & 2 deletions src/components/Dropdown/components/DropdownTitle.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
import { type PropsWithChildren } from 'react';
import clsx from 'clsx';

import * as styles from '@components/Dropdown/style.css';

const DropdownTitle = ({ children }: PropsWithChildren) => {
interface DropdownTitleProps {
className?: string;
}

const DropdownTitle = ({
className,
children,
}: PropsWithChildren<DropdownTitleProps>) => {
return (
<>
<div className={styles.dropdownTitle}>{children}</div>
<div className={clsx(className, styles.dropdownTitle)}>{children}</div>
<div className={styles.line} />
</>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/components/ProfileButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const ProfileButton = () => {
<Icon icon="profileHeader" width={28} height={28} />
</Dropdown.Trigger>
<Dropdown.List>
<Dropdown.Title>
<Dropdown.Title className={styles.profileNameWrapper}>
<Icon icon="profileDialog" width={40} height={40} />
<span className={styles.profileName}>{data?.nickname}</span>
</Dropdown.Title>
Expand Down
4 changes: 4 additions & 0 deletions src/components/Layout/style.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ export const profile = style({
padding: '10px',
});

export const profileNameWrapper = style({
justifyContent: 'left',
});

export const dialogWrapper = style({
padding: '10px',
});
Expand Down

0 comments on commit ee291b2

Please sign in to comment.