Skip to content

Commit cfd5a4b

Browse files
committed
Fix asset store details page Link size and hrefs
Don't show in changelog
1 parent fbb7f16 commit cfd5a4b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

newIDE/app/src/AssetStore/AssetDetails.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export const AssetDetails = ({
195195
<Column expand noMargin>
196196
<Line justifyContent="space-between" noMargin>
197197
<Column>
198-
<Line alignItems="center" noMargin>
198+
<Line alignItems="baseline" noMargin>
199199
<Text size="title" displayInlineAsSpan>
200200
{assetShortHeader.name}
201201
</Text>
@@ -208,9 +208,10 @@ export const AssetDetails = ({
208208
return (
209209
<Link
210210
key={author.name}
211-
component="button"
212-
onClick={() => {
211+
href={author.website}
212+
onClick={event => {
213213
Window.openExternalURL(author.website);
214+
event.preventDefault();
214215
}}
215216
>
216217
{author.name}
@@ -398,9 +399,10 @@ export const AssetDetails = ({
398399
Type of License:{' '}
399400
{
400401
<Link
401-
component="button"
402-
onClick={() => {
402+
href={assetLicense.website}
403+
onClick={event => {
403404
Window.openExternalURL(assetLicense.website);
405+
event.preventDefault();
404406
}}
405407
>
406408
{assetLicense.name}

0 commit comments

Comments
 (0)