Skip to content

Commit

Permalink
Some fixes after smoke testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kgpax committed Sep 22, 2023
1 parent 13b1013 commit f980cb8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 5 additions & 1 deletion packages/webui/src/components/Authorization.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ export default function Authorization({ value }: AuthorizationProps) {
case TokenState.Expanded:
return <Code data-test-id="token-expanded-view">{`${type} ${token}`}</Code>;
case TokenState.Decoded:
return <div data-test-id="token-decoded-view">{decodedToken}</div>;
return (
<div data-test-id="token-decoded-view" className="flex-1">
{decodedToken}
</div>
);
}
})()}
</span>
Expand Down
4 changes: 1 addition & 3 deletions packages/webui/src/components/ui/Code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ export default function Code({ inline = false, prettify = true, className, child
<div className={tw('code-block', className)} {...props}>
<ul>
{lines.map((x, idx) => (
<li key={idx}>
<pre>{x}</pre>
</li>
<li key={idx}>{x}</li>
))}
</ul>
</div>
Expand Down

0 comments on commit f980cb8

Please sign in to comment.