Skip to content

Commit

Permalink
Merge pull request #154 from bankidz/dev
Browse files Browse the repository at this point in the history
QA : 안드로이드 기기 대응
  • Loading branch information
9yujin authored Aug 5, 2022
2 parents f913a43 + 6eba356 commit 23737d7
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 9 deletions.
7 changes: 3 additions & 4 deletions src/components/common/buttons/RoleButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,14 @@ const StyledButton = styled.button<{
.content {
width: 100%;
height: 100%;
position: absolute;
left: 50%;
top: 50%;
transform: translate3d(-50%, -50%, 0);
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
display: grid;
grid-template-rows: 115fr 31fr;
svg {
margin-bottom: 10px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function Layout() {
};
const setBodyWhite = () => {
const bodyElement = document.querySelector('body');
bodyElement!.style.backgroundColor = '#ffffff';
bodyElement!.style.backgroundColor = '#fafafc';
};
if (isPC) {
setBodyYellow();
Expand Down
1 change: 1 addition & 0 deletions src/components/walk/SwipeToWalk.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ComponentStory, ComponentMeta } from '@storybook/react';
import styled from 'styled-components';
import SwipeToWalk from './SwipeToWalk';

export default {
Expand Down
4 changes: 3 additions & 1 deletion src/components/walk/WalkDefault.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,12 @@ const DongilList = styled.div`
margin-top: 23px;
height: 56px;
gap: 12px;
& > div {
position: relative;
&:not(:last-child) {
margin-right: 12px;
}
& > svg {
position: absolute;
bottom: -40.5px;
Expand Down
38 changes: 35 additions & 3 deletions src/components/walk/WalkingItemNameButton.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
import { ComponentStory, ComponentMeta } from '@storybook/react';
import styled from 'styled-components';
import WalkingItemNameButton from './WalkingItemNameButton';

export default {
title: 'walk/WalkingItemNameButton',
component: WalkingItemNameButton,
decorators: [
(Story) => (
<div style={{ margin: '18px' }}>
<Story />
</div>
<DongilList>
<div>
<Story />
</div>
<div>
<Story />
</div>
<div>
<Story />
</div>
</DongilList>
),
],
} as ComponentMeta<typeof WalkingItemNameButton>;
Expand Down Expand Up @@ -41,3 +50,26 @@ noticed_selected.args = {
isSelected: true,
isNoticed: true,
};

const DongilList = styled.div`
display: flex;
justify-content: center;
align-items: center;
margin-top: 23px;
height: 56px;
//gap: 12px;
& > div {
position: relative;
&:not(:last-child) {
margin-right: 12px;
}
& > svg {
position: absolute;
bottom: -40.5px;
left: 50%;
transform: translate3d(-50%, 0, 0);
}
}
`;

0 comments on commit 23737d7

Please sign in to comment.