-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #279 from pshenmic/feat/identities-names-frontend
Implement identities names on frontend
- Loading branch information
Showing
11 changed files
with
148 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 24 additions & 17 deletions
41
packages/frontend/src/app/identity/[identifier]/Identity.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,36 @@ | ||
@use '../../../styles/mixins.scss'; | ||
|
||
.IdentityInfo { | ||
height: min-content; | ||
height: min-content; | ||
|
||
&__Avatar { | ||
margin-left: auto; | ||
width: 32px; | ||
height: 32px; | ||
} | ||
&__Avatar { | ||
margin-left: auto; | ||
width: 32px; | ||
height: 32px; | ||
} | ||
|
||
&__AliasesContainer { | ||
max-height: 110px; | ||
min-height: 21px; | ||
height: 100%; | ||
overflow-y: auto; | ||
} | ||
} | ||
|
||
.IdentityData { | ||
&__Tabs { | ||
flex-wrap: wrap; | ||
} | ||
&__Tabs { | ||
flex-wrap: wrap; | ||
} | ||
|
||
@media screen and (max-width: 530px) { | ||
&__Tab { | ||
width: 50%; | ||
} | ||
@media screen and (max-width: 530px) { | ||
&__Tab { | ||
width: 50%; | ||
} | ||
} | ||
|
||
@media screen and (max-width: 320px) { | ||
&__Tab { | ||
width: 100%; | ||
} | ||
@media screen and (max-width: 320px) { | ||
&__Tab { | ||
width: 100%; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import './Alias.scss' | ||
|
||
export default function Alias ({ children, className }) { | ||
const dashIndex = children.lastIndexOf('.dash') | ||
|
||
return ( | ||
<div className={`Alias ${className || ''}`}> | ||
<span className={'Alias__Name'}> | ||
{dashIndex !== -1 | ||
? children.slice(0, dashIndex) | ||
: children | ||
} | ||
</span> | ||
|
||
{dashIndex !== -1 && | ||
<span className={'Alias__Domain'}> | ||
{children.slice(dashIndex)} | ||
</span> | ||
} | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@use '../../styles/mixins.scss'; | ||
@import '../../styles/variables.scss'; | ||
|
||
.Alias { | ||
font-family: $font-mono; | ||
color: #fff; | ||
|
||
&__Domain { | ||
opacity: .5; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import Identifier from './Identifier' | ||
import Credits from './Credits' | ||
import Alias from './Alias' | ||
|
||
export { | ||
Identifier, | ||
Credits | ||
Credits, | ||
Alias | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 24 additions & 13 deletions
37
packages/frontend/src/components/identities/IdentitiesListItem.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
display: flex; | ||
align-items: center; | ||
overflow: hidden; | ||
flex-grow: 1; | ||
} | ||
|
||
&__Alias { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters