Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
76157c05
Unverified
Commit
76157c05
authored
Nov 14, 2023
by
cartcrom
Committed by
GitHub
Nov 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: portfolioLogo alignment (#7585)
* fix: portfolioLogo alignment * fix: snapshot
parent
a1bd6f5e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
9 deletions
+35
-9
PortfolioLogo.tsx
src/components/AccountDrawer/MiniPortfolio/PortfolioLogo.tsx
+7
-5
PortfolioLogo.test.tsx.snap
...r/MiniPortfolio/__snapshots__/PortfolioLogo.test.tsx.snap
+18
-2
TokenRow.tsx
src/components/Tokens/TokenTable/TokenRow.tsx
+1
-1
TokenRow.test.tsx.snap
...ts/Tokens/TokenTable/__snapshots__/TokenRow.test.tsx.snap
+9
-1
No files found.
src/components/AccountDrawer/MiniPortfolio/PortfolioLogo.tsx
View file @
76157c05
...
...
@@ -36,7 +36,9 @@ const DoubleLogoContainer = styled.div`
}
`
const
StyledLogoParentContainer
=
styled
.
div
`
const
LogoContainer
=
styled
.
div
`
display: flex;
align-items: center;
position: relative;
top: 0;
left: 0;
...
...
@@ -57,9 +59,9 @@ const CircleLogoImage = styled.img<{ size: string }>`
const
L2LogoContainer
=
styled
.
div
`
border-radius:
${
getDefaultBorderRadius
(
16
)}
px;
height: 16px;
left:
6
0%;
left:
7
0%;
position: absolute;
top:
6
0%;
top:
7
0%;
outline: 2px solid
${({
theme
})
=>
theme
.
surface1
}
;
width: 16px;
display: flex;
...
...
@@ -155,10 +157,10 @@ function SquareL2Logo({ chainId }: { chainId: ChainId }) {
*/
export
function
PortfolioLogo
(
props
:
PortfolioLogoProps
)
{
return
(
<
StyledLogoParent
Container
style=
{
props
.
style
}
>
<
Logo
Container
style=
{
props
.
style
}
>
{
getLogo
(
props
)
}
<
SquareL2Logo
chainId=
{
props
.
chainId
}
/>
</
StyledLogoParent
Container
>
</
Logo
Container
>
)
}
...
...
src/components/AccountDrawer/MiniPortfolio/__snapshots__/PortfolioLogo.test.tsx.snap
View file @
76157c05
...
...
@@ -32,6 +32,14 @@ exports[`PortfolioLogo renders with L2 icon 1`] = `
}
.c0 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
position: relative;
top: 0;
left: 0;
...
...
@@ -46,9 +54,9 @@ exports[`PortfolioLogo renders with L2 icon 1`] = `
.c3 {
border-radius: 4px;
height: 16px;
left:
6
0%;
left:
7
0%;
position: absolute;
top:
6
0%;
top:
7
0%;
outline: 2px solid #FFFFFF;
width: 16px;
display: -webkit-box;
...
...
@@ -150,6 +158,14 @@ exports[`PortfolioLogo renders without L2 icon 1`] = `
}
.c0 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
position: relative;
top: 0;
left: 0;
...
...
src/components/Tokens/TokenTable/TokenRow.tsx
View file @
76157c05
...
...
@@ -114,7 +114,7 @@ const ClickableContent = styled.div<{ gap?: number }>`
cursor: pointer;
`
const
ClickableName
=
styled
(
ClickableContent
)
`
gap: 1
2
px;
gap: 1
4
px;
max-width: 100%;
`
const
StyledHeaderRow
=
styled
(
StyledTokenRow
)
`
...
...
src/components/Tokens/TokenTable/__snapshots__/TokenRow.test.tsx.snap
View file @
76157c05
...
...
@@ -3,6 +3,14 @@
exports[`LoadedRow.tsx renders a row 1`] = `
<DocumentFragment>
.c7 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
position: relative;
top: 0;
left: 0;
...
...
@@ -94,7 +102,7 @@ exports[`LoadedRow.tsx renders a row 1`] = `
}
.c6 {
gap: 1
2
px;
gap: 1
4
px;
max-width: 100%;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment