From 446c61d08fc8361b1ea299ecd9d8e6c7dabb0e47 Mon Sep 17 00:00:00 2001 From: Pandelis Symeonidis <54764628+Pandelissym@users.noreply.github.com> Date: Fri, 20 Oct 2023 16:21:34 +0200 Subject: [PATCH] Fix button placement in sell modal and arrow svg (#66) - Fixed the placement of confirm and previous buttons in sell modal (for items and characters). Wrapped the buttons in wrapper and made the step components a bit smaller so the buttons can fit nicely at the bottom. - Removed padding from some arrow icons in the button so they show up properly closes #64 Co-authored-by: Pandelis Symeonidis --- frontend/src/pages/buy/styles.ts | 1 - frontend/src/pages/sell/sell-form.tsx | 29 +++++++++++++++------------ frontend/src/pages/sell/styles.ts | 12 +++++------ 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/frontend/src/pages/buy/styles.ts b/frontend/src/pages/buy/styles.ts index 675ac5762..043655ba7 100644 --- a/frontend/src/pages/buy/styles.ts +++ b/frontend/src/pages/buy/styles.ts @@ -42,7 +42,6 @@ export const ContentWrapper = styled.div` `; export const ArrowUp = styled(ArrowUpRightIcon)` - padding-left: 13px; path { stroke: ${color.white}; } diff --git a/frontend/src/pages/sell/sell-form.tsx b/frontend/src/pages/sell/sell-form.tsx index ffea3f4ea..0ca01442d 100644 --- a/frontend/src/pages/sell/sell-form.tsx +++ b/frontend/src/pages/sell/sell-form.tsx @@ -21,6 +21,7 @@ import { SellData, SellStep } from "./types"; import { ISTTouIST } from "../../util"; import { SellDescription } from "../../components/sell-description/sell-description"; import { useCharacterBuilder } from "../../context/character-builder-context"; +import { ButtonWrapper } from "../create-character/styles"; interface SellFormProps { data: SellData; @@ -73,19 +74,21 @@ export const SellForm: FC = ({ data, changeStep, onSubmit, isPlac )} - {isOnFirstStep && ( - changeStep(INFORMATION_STEP)}> - - {text.mint.previous} - - - )} - - changeStep(CONFIRMATION_STEP)} disabled={!isPlacedInShop}> - {text.mint.confirm} - {isOfferPending ? : } - - + + {isOnFirstStep && ( + changeStep(INFORMATION_STEP)}> + + {text.mint.previous} + + + )} + + changeStep(CONFIRMATION_STEP)} disabled={!isPlacedInShop}> + {text.mint.confirm} + {isOfferPending ? : } + + + ); }; diff --git a/frontend/src/pages/sell/styles.ts b/frontend/src/pages/sell/styles.ts index 182bf99b5..f109e0adf 100644 --- a/frontend/src/pages/sell/styles.ts +++ b/frontend/src/pages/sell/styles.ts @@ -55,7 +55,6 @@ export const Header = styled.div` margin-top: 16px; `; export const ArrowUp = styled(ArrowUpRightIcon)` - padding-left: 13px; path { stroke: ${color.white}; } @@ -98,7 +97,7 @@ export const InputWrapper = styled.div` `; export const StepContainer = styled.div` - margin-top: ${margins.big}; + margin-top: ${margins.small}; `; export const StepText = styled(ButtonText)` @@ -114,7 +113,7 @@ export const Step = styled.div` padding: ${margins.medium}; position: static; width: 100%; - height: 88px; + height: 82px; left: 0; top: 0; background: ${color.white}; @@ -141,10 +140,10 @@ export const Step = styled.div` `; export const Line = styled.div` - width: ${margins.small}; + width: ${margins.mini}; border: 0.5px solid ${color.darkGrey}; transform: rotate(90deg); - margin: ${margins.small} 20px ${margins.small} 39px; + margin: ${margins.mini} 20px ${margins.mini} 39px; `; interface NumberProps { @@ -185,7 +184,6 @@ export const NumberContainer = styled.div` `; export const PreviousButtonContainer = styled.div` - position: absolute; bottom: ${margins.big}; :hover { ${ArrowUp} { @@ -286,7 +284,7 @@ export const GeneralInfo = styled.div` padding: ${margins.medium}; position: static; width: 100%; - height: 88px; + height: 82px; left: 0; top: 0; background: ${color.white};