UI minor fixes

This commit is contained in:
Arkadiusz Wieczorek 2022-07-06 19:03:15 +02:00
parent e47bb1e9b8
commit 0efaa39d45
3 changed files with 10 additions and 8 deletions

View File

@ -137,13 +137,18 @@ export default function StolenDataCluster({
getMemory().emit('change', cluster.id);
}}
/>
<a className="domain" href={'https://' + cluster.id}>
<a className="domain" href={'https://' + cluster.id} target="_blank">
{cluster.id}
</a>
</div>
<div className="subdomains-container">
{fullHosts.map((host, index) => (
<a className="subdomain" key={host} href={`https://${host}`}>
<a
className="subdomain"
key={host}
href={`https://${host}`}
target="_blank"
>
{host} {`${fullHosts.length - 1 !== index ? '· ' : ''}`}
</a>
))}

View File

@ -135,15 +135,11 @@ const Toolbar = () => {
<span>Przejdź do wybranej strony internetowej</span>
)}
</div>
{stolenDataView ? (
{origin ? (
<a href="https://internet-czas-dzialac.pl">
<img src="/assets/icons/info_circle_outline.svg" width="20" height="20" />
</a>
) : (
<button onClick={() => setStolenDataView(true)}>
<img src="/assets/icons/short_left.svg" width="20" height="20" />
</button>
)}
) : null}
</header>
<section className="summary">

View File

@ -81,6 +81,7 @@ export default function Options({
<input
type="number"
id="minValueLength"
min={1}
value={minValueLength}
onChange={(e) => {
setMinValueLength(parseInt(e.target.value));