Skip to content

Commit

Permalink
UBER-601: fixed accentuation of ObjectPresenter (#3507)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
  • Loading branch information
SasLord authored and annano committed Aug 24, 2023
1 parent 458bf37 commit a1123fb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
16 changes: 8 additions & 8 deletions plugins/activity-resources/src/components/TxView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@
<span class="lower"><Label label={m.label} /></span>
{#each value.added as cvalue}
{#if value.isObjectAdded}
<ObjectPresenter value={cvalue} inline />
<ObjectPresenter value={cvalue} inline accent />
{:else}
<svelte:component this={m.presenter} value={cvalue} inline />
<svelte:component this={m.presenter} value={cvalue} inline accent />
{/if}
{/each}
{:else if value.removed.length}
Expand All @@ -256,9 +256,9 @@
<span class="lower"><Label label={m.label} /></span>
{#each value.removed as cvalue}
{#if value.isObjectRemoved}
<ObjectPresenter value={cvalue} inline />
<ObjectPresenter value={cvalue} inline accent />
{:else}
<svelte:component this={m.presenter} value={cvalue} inline />
<svelte:component this={m.presenter} value={cvalue} inline accent />
{/if}
{/each}
{:else if value.set === null || value.set === undefined || value.set === ''}
Expand All @@ -272,9 +272,9 @@
<span class="lower"><Label label={activity.string.To} /></span>
<span class="strong overflow-label">
{#if value.isObjectSet}
<ObjectPresenter value={value.set} inline />
<ObjectPresenter value={value.set} inline accent />
{:else}
<svelte:component this={m.presenter} value={value.set} inline />
<svelte:component this={m.presenter} value={value.set} inline accent />
{/if}
</span>
{:else}
Expand All @@ -300,9 +300,9 @@
{#if !hasMessageType}
<div class="strong overflow-label">
{#if value.isObjectSet}
<ObjectPresenter value={value.set} inline />
<ObjectPresenter value={value.set} inline accent />
{:else}
<svelte:component this={m.presenter} value={value.set} inline />
<svelte:component this={m.presenter} value={value.set} inline accent />
{/if}
</div>
{/if}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,23 +122,24 @@
height: 2rem;
min-width: 0;
min-height: 0;
border-radius: 0.5rem;
border-radius: 0.25rem;
// width: fit-content;
border: 1px solid transparent;
&:hover {
border: 1px solid var(--divider-color);
border-color: var(--theme-divider-color);
}
.btn-close {
flex-shrink: 0;
margin-left: 0.125rem;
padding: 0 0.25rem 0 0.125rem;
height: 1.75rem;
color: var(--content-color);
color: var(--theme-content-color);
border-left: 1px solid transparent;
&:hover {
color: var(--caption-color);
border-left-color: var(--divider-color);
color: var(--theme-caption-color);
border-left-color: var(--theme-divider-color);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
export let value: Doc | RelatedDocument | undefined = undefined
export let props: Record<string, any> = {}
export let inline: boolean = true
export let accent: boolean = true
export let accent: boolean = false
export let shouldShowAvatar: boolean = true
export let noUnderline: boolean = false
Expand Down

0 comments on commit a1123fb

Please sign in to comment.