Skip to content

Commit

Permalink
revert style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
coskucinkilic committed Oct 1, 2024
1 parent ffca1fe commit 6c0d59d
Showing 1 changed file with 58 additions and 73 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,80 +52,72 @@
{#if $ENABLE_NEURON_VISIBILITY}
<NnsNeuronPublicVisibilityAction {neuron} />
{/if}
<div class="inner-section">
<KeyValuePair>
<span slot="key" class="label">{$i18n.neurons.neuron_id}</span>
<span slot="value" class="value" data-tid="neuron-id"
>{neuron.neuronId}</span
>
</KeyValuePair>
<KeyValuePair>
<span slot="key" class="label">{$i18n.neuron_detail.created}</span>
<span slot="value" class="value" data-tid="neuron-created"
>{secondsToDateTime(neuron.createdTimestampSeconds)}</span
>
</KeyValuePair>
<NnsNeuronAge {neuron} />
{#if nonNullish(dissolvingTimestamp)}
<KeyValuePair>
<span slot="key" class="label">{$i18n.neurons.neuron_id}</span>
<span slot="value" class="value" data-tid="neuron-id"
>{neuron.neuronId}</span
<span slot="key" class="label">{$i18n.neuron_detail.dissolve_date}</span
>
<span slot="value" class="value" data-tid="neuron-dissolve-date"
>{secondsToDateTime(dissolvingTimestamp)}</span
>
</KeyValuePair>
<KeyValuePair>
<span slot="key" class="label">{$i18n.neuron_detail.created}</span>
<span slot="value" class="value" data-tid="neuron-created"
>{secondsToDateTime(neuron.createdTimestampSeconds)}</span
{/if}
{#if nonNullish(neuron.fullNeuron)}
<KeyValuePair testId="neuron-account-row">
<span slot="key" class="label"
>{$i18n.neuron_detail.neuron_account}</span
>
<Hash
slot="value"
className="value"
tagName="span"
testId="neuron-account"
text={neuron.fullNeuron.accountIdentifier}
id="neuron-account"
showCopy
/>
</KeyValuePair>
<NnsNeuronAge {neuron} />
{#if nonNullish(dissolvingTimestamp)}
<KeyValuePair>
{/if}
{#if nonNullish($nnsLatestRewardEventStore)}
<!-- Extra div to avoid the gap of the flex container to be applied between the collapsible header and its content -->
<div>
<KeyValuePairInfo>
<span slot="key" class="label"
>{$i18n.neuron_detail.dissolve_date}</span
>{$i18n.neuron_detail.maturity_last_distribution}</span
>
<span slot="value" class="value" data-tid="neuron-dissolve-date"
>{secondsToDateTime(dissolvingTimestamp)}</span
<span slot="value" class="value" data-tid="last-rewards-distribution"
>{secondsToDate(
Number(
maturityLastDistribution($nnsLatestRewardEventStore.rewardEvent)
)
)}</span
>
</KeyValuePair>
{/if}
{#if nonNullish(neuron.fullNeuron)}
<KeyValuePair testId="neuron-account-row">
<span slot="key" class="label"
>{$i18n.neuron_detail.neuron_account}</span
<svelte:fragment slot="info"
><Html
text={$i18n.neuron_detail.maturity_last_distribution_info}
/></svelte:fragment
>
<Hash
slot="value"
className="value"
tagName="span"
testId="neuron-account"
text={neuron.fullNeuron.accountIdentifier}
id="neuron-account"
showCopy
/>
</KeyValuePair>
{/if}
{#if nonNullish($nnsLatestRewardEventStore)}
<!-- Extra div to avoid the gap of the flex container to be applied between the collapsible header and its content -->
<div>
<KeyValuePairInfo>
<span slot="key" class="label"
>{$i18n.neuron_detail.maturity_last_distribution}</span
>
<span
slot="value"
class="value"
data-tid="last-rewards-distribution"
>{secondsToDate(
Number(
maturityLastDistribution(
$nnsLatestRewardEventStore.rewardEvent
)
)
)}</span
>
<svelte:fragment slot="info"
><Html
text={$i18n.neuron_detail.maturity_last_distribution_info}
/></svelte:fragment
>
</KeyValuePairInfo>
</div>
{/if}
</div>
<div class="inner-section">
<NnsAutoStakeMaturity {neuron} />
{#if canManageNFParticipation}
<JoinCommunityFundCheckbox {neuron} />
{/if}
</div>
</KeyValuePairInfo>
</div>
{/if}

<NnsAutoStakeMaturity {neuron} />
{#if canManageNFParticipation}
<JoinCommunityFundCheckbox {neuron} />
{/if}

{#if isControllable}
<SplitNnsNeuronButton {neuron} />
{/if}
Expand All @@ -141,21 +133,14 @@
display: flex;
flex-direction: column;
align-items: flex-start;
gap: var(--padding-3x);
gap: var(--padding-2x);
padding: 0;
padding-top: var(--padding);
--checkbox-padding: 0;
--checkbox-label-order: 1;
}
.inner-section {
display: flex;
flex-direction: column;
gap: var(--padding-2x);
}
.label {
color: var(--description-color);
}
Expand Down

0 comments on commit 6c0d59d

Please sign in to comment.