Skip to content

Commit

Permalink
feat: Fix css
Browse files Browse the repository at this point in the history
  • Loading branch information
1ilsang committed Aug 19, 2023
1 parent 41ac84e commit ea498dc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/features/home/home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

.content {
width: 100%;
padding: 0px 12px;
padding: 0px;

.title {
font-weight: 500;
Expand Down Expand Up @@ -47,7 +47,7 @@

.image {
border-radius: 50px;
border: 1px solid $description-sub;
border: 1px solid #E9E9F1;
width: 100px;
height: 100px;
}
Expand Down
5 changes: 5 additions & 0 deletions src/features/preview/Container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ const Container = () => {
useLayoutEffect(() => {
setTitle({ title: 'CardMe Preview', back: true });
setBottomBtn({ text: 'Modification' });

return () => {
setTitle({});
setBottomBtn({});
};
}, []);

return (
Expand Down
5 changes: 5 additions & 0 deletions src/features/setting/Container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ const Container = () => {
useLayoutEffect(() => {
setTitle({ title: 'Active', back: true });
setBottomBtn({ text: 'Save' });

return () => {
setTitle({});
setBottomBtn({});
};
}, []);

return (
Expand Down
2 changes: 1 addition & 1 deletion src/features/shared/layout/components/BottomBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const LayoutBottomBtn: FunctionComponent = () => {
const [{ text, add }] = useAtom(bottomBtnAtom);
const [, setActiveSave] = useAtom(activeSaveAtom);

if (!text) return <div className="layout-bottom" />;
if (!text) return null;

return (
<div className="layout-bottom">
Expand Down

0 comments on commit ea498dc

Please sign in to comment.