Handle missing authors and fix pre overflow
This commit is contained in:
parent
67a40cfb84
commit
887c725065
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
<div>
|
<div>
|
||||||
{#each licenses as license}
|
{#each licenses as license}
|
||||||
<header>
|
<header>
|
||||||
<h1>{license.name} by {license.author}</h1>
|
<h1>{license.name}{#if license.author} by {license.author}{/if}</h1>
|
||||||
<div>Source: <a href="{license.repository}" target="_blank">{license.repository}</a></div>
|
<div>Source: <a href="{license.repository}" target="_blank">{license.repository}</a></div>
|
||||||
</header>
|
</header>
|
||||||
<pre>{license.licenseText}</pre>
|
<pre>{license.licenseText}</pre>
|
||||||
|
@ -35,5 +35,6 @@ pre {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
background-color: #F0F0F0;
|
background-color: #F0F0F0;
|
||||||
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
Loading…
Add table
Add a link
Reference in a new issue