Skip to content

Commit

Permalink
Fix alignment on Welcome page content
Browse files Browse the repository at this point in the history
Content was not centered causing a bad UI. This commit fix that.

fix brave/brave-browser#6846
  • Loading branch information
cezaraugusto committed Nov 12, 2019
1 parent 5c0d881 commit 416a7df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/brave_welcome_ui/components/wrapper/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ export const Content = styled<ContentProps, 'section'>('section')`
transform: translateX(${p => p.isPrevious ? '-' + p.screenPosition : p.screenPosition}) scale(0.8);
transition: opacity 600ms, transform 600ms ease-in-out;
position: absolute;
top: 0;
left: 0;
right: 0;
z-index: ${p => p.zIndex};
display: flex;
flex-direction: column;
Expand All @@ -81,6 +84,7 @@ export const Content = styled<ContentProps, 'section'>('section')`
flex: 1;
max-width: 580px;
padding: 24px;
margin: auto;
/*
prevents focus on all content's child elements if the parent is not active.
Expand Down

0 comments on commit 416a7df

Please sign in to comment.