Remove success state from evaluation panel and rename to preview
This commit is contained in:
parent
da838386d9
commit
a27529eca5
|
@ -40,19 +40,15 @@
|
|||
<div class="evaluation-side-panel">
|
||||
<div class="header" class:success class:error>
|
||||
<div class="header-content">
|
||||
{#if success}
|
||||
<Icon
|
||||
name="CheckmarkCircle"
|
||||
color="var(--spectrum-global-color-green-600)"
|
||||
/>
|
||||
<span>Success</span>
|
||||
<Icon name="Copy" hoverable on:click={copy} />
|
||||
{:else if error}
|
||||
{#if error}
|
||||
<Icon name="Alert" color="var(--spectrum-global-color-red-600)" />
|
||||
<span> Error </span>
|
||||
<Icon name="Copy" hoverable on:click={copy} />
|
||||
{:else}
|
||||
<span>Run</span>
|
||||
<span>Preview</span>
|
||||
{#if !empty}
|
||||
<Icon name="Copy" hoverable on:click={copy} />
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -91,7 +87,6 @@
|
|||
.header-content span {
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
.header.success::before,
|
||||
.header.error::before {
|
||||
content: "";
|
||||
left: 0;
|
||||
|
@ -102,9 +97,6 @@
|
|||
position: absolute;
|
||||
opacity: 10%;
|
||||
}
|
||||
.header.success::before {
|
||||
background: var(--spectrum-global-color-green-600);
|
||||
}
|
||||
.header.error::before {
|
||||
background: var(--spectrum-global-color-red-400);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue