Skip to content

Commit

Permalink
feat: Modal component Responsive Web Develop
Browse files Browse the repository at this point in the history
  • Loading branch information
juntaepark committed Aug 23, 2023
1 parent ca089b4 commit c253b6b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ import styled from "@emotion/styled";
import { media } from "@styles/media";
import mixins from "@styles/mixins";

export const NotificationListWrapper = styled.div`
export interface NotificationProps {
width?: number;
}

export const NotificationListWrapper = styled.div<NotificationProps>`
position: absolute;
top: 53px;
right: -150px;
right: ${({ width }) => {
return width && width > 1680 ? "-150px" : "0px";
}};
${media.tablet} {
top: 46px;
right: 0px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const NotificationList: React.FC<NotificationListProps> = ({
}, [listRef, onListToggle]);

return (
<NotificationListWrapper ref={listRef}>
<NotificationListWrapper ref={listRef} width={window?.innerWidth}>
<NotificationHeader>
<span className="notification-title">Notification</span>
{txsGroupsInformation.length > 0 && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@ import { media } from "@styles/media";
import mixins from "@styles/mixins";
import { Z_INDEX } from "@styles/zIndex";

export const WalletConnectorMenuWrapper = styled.div`
export interface WalletMenuProps {
width?: number;
}

export const WalletConnectorMenuWrapper = styled.div<WalletMenuProps>`
position: absolute;
width: 280px;
top: 54px;
right: ${({ width }) => {
return width && width < 1521 && "0px";
}};
${media.tablet} {
top: 49px;
right: 0px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const WalletConnectorMenu: React.FC<WalletConnectorMenuProps> = ({
}, [menuRef, onMenuToggle]);

return (
<WalletConnectorMenuWrapper ref={menuRef}>
<WalletConnectorMenuWrapper ref={menuRef} width={window?.innerWidth}>
{isConnected ? (
<div className="button-container">
<MenuHeader>
Expand Down

0 comments on commit c253b6b

Please sign in to comment.