Skip to content

Commit

Permalink
fix: align sign-in methods display and cells
Browse files Browse the repository at this point in the history
Signed-off-by: David Dal Busco <[email protected]>
  • Loading branch information
peterpeterparker committed Nov 14, 2023
1 parent 832c84a commit 941a353
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
7 changes: 6 additions & 1 deletion src/frontend/src/lib/components/auth/SignInMethod.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<tr>
<td
><ExternalLink href="https://internetcomputer.org/internet-identity"
><IconIC /> Internet Identity</ExternalLink
><span class="icon"><IconIC /></span> Internet Identity</ExternalLink
></td
>
<td class="status">{$i18n.users.enabled}</td>
Expand All @@ -40,10 +40,15 @@
@include media.min-width(medium) {
display: table-cell;
vertical-align: middle;
}
}
tr:last-of-type td {
padding-bottom: var(--padding-1_5x);
}
.icon {
margin: 0 var(--padding-0_5x) 0 0;
}
</style>
2 changes: 1 addition & 1 deletion src/frontend/src/lib/components/auth/User.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</script>

<tr>
<td><Identifier identifier={owner.toText()} /></td>
<td><Identifier small={false} identifier={owner.toText()} /></td>
<td class="providers">
{#if provider === 'internet_identity'}
<IconIC title="Internet Identity" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
<style lang="scss">
svg {
min-width: 14px;
margin: var(--padding-0_25x) 0 0;
}
</style>
4 changes: 3 additions & 1 deletion src/frontend/src/lib/components/ui/ExternalLink.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@

<style lang="scss">
a {
display: inline-block;
display: inline-flex;
align-items: center;
gap: var(--padding-0_5x);
&:not(.underline) {
text-decoration: none;
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/lib/styles/global/table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ th,
td,
.td {
padding: var(--padding) var(--padding-2x);
vertical-align: text-top;
vertical-align: middle;

&:not(.actions) {
@include text.truncate;
Expand Down

0 comments on commit 941a353

Please sign in to comment.