mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 03:14:40 +03:00
Fix extra characters in UI (#6826)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
c9a032eb0b
commit
effdf245ac
@ -76,8 +76,9 @@
|
||||
use:tooltip={{
|
||||
component: Label,
|
||||
props: { label: attribute.label }
|
||||
}}><Label label={attribute.label} /></span
|
||||
>
|
||||
}}
|
||||
><Label label={attribute.label} />
|
||||
</span>
|
||||
<div class="flex flex-grow min-w-0">
|
||||
<svelte:component
|
||||
this={editor}
|
||||
|
@ -26,7 +26,9 @@
|
||||
</script>
|
||||
|
||||
{#if node}
|
||||
<pre class="proseCodeBlock" style:margin={preview ? '0' : null}><code
|
||||
><Component is={diffview.component.Highlight} props={{ value, language }} /></code
|
||||
></pre>
|
||||
<pre class="proseCodeBlock" style:margin={preview ? '0' : null}>
|
||||
<code>
|
||||
<Component is={diffview.component.Highlight} props={{ value, language }} />
|
||||
</code>
|
||||
</pre>
|
||||
{/if}
|
||||
|
@ -121,7 +121,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
>
|
||||
|
||||
<style lang="scss">
|
||||
.img {
|
||||
|
@ -87,7 +87,6 @@
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
>
|
||||
|
||||
<style lang="scss">
|
||||
.editbox {
|
||||
|
@ -157,7 +157,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
>
|
||||
|
||||
<style lang="scss">
|
||||
.editbox-container {
|
||||
|
@ -73,7 +73,6 @@
|
||||
on:keypress
|
||||
on:blur
|
||||
/>
|
||||
>
|
||||
|
||||
<style lang="scss">
|
||||
.root {
|
||||
|
@ -86,7 +86,6 @@
|
||||
<IconClose size={'small'} />
|
||||
</button>
|
||||
</label>
|
||||
>
|
||||
|
||||
<style lang="scss">
|
||||
.searchInput-wrapper {
|
||||
|
@ -55,7 +55,6 @@
|
||||
on:blur
|
||||
/>
|
||||
</div>
|
||||
>
|
||||
|
||||
<style lang="scss">
|
||||
.textarea {
|
||||
|
@ -84,4 +84,3 @@
|
||||
>
|
||||
{time}
|
||||
</span>
|
||||
span>
|
||||
|
@ -89,9 +89,9 @@
|
||||
{#if selectedTZ}
|
||||
<div class="header flex-col">
|
||||
<div class="flex-between min-h-4" style:margin-right={'-.5rem'}>
|
||||
<span class="text-xs font-medium uppercase content-darker-color flex-grow"
|
||||
><Label label={ui.string.Selected} /></span
|
||||
>
|
||||
<span class="text-xs font-medium uppercase content-darker-color flex-grow">
|
||||
<Label label={ui.string.Selected} />
|
||||
</span>
|
||||
{#if reset !== null}
|
||||
<ActionIcon
|
||||
icon={IconUndo}
|
||||
|
@ -112,9 +112,9 @@
|
||||
{#if viewDate}
|
||||
<div class="caption">
|
||||
{#each [...Array(7).keys()] as dayOfWeek}
|
||||
<span class="weekdays ui-regular-12"
|
||||
>{capitalizeFirstLetter(getWeekDayName(day(firstDayOfCurrentMonth, dayOfWeek), 'short'))}</span
|
||||
>
|
||||
<span class="weekdays ui-regular-12">
|
||||
{capitalizeFirstLetter(getWeekDayName(day(firstDayOfCurrentMonth, dayOfWeek), 'short'))}
|
||||
</span>
|
||||
{/each}
|
||||
</div>
|
||||
<div class="calendar">
|
||||
|
@ -134,9 +134,9 @@
|
||||
{#if viewDate}
|
||||
<div class="calendar" class:noPadding>
|
||||
{#each [...Array(7).keys()] as dayOfWeek}
|
||||
<span class="caption"
|
||||
>{capitalizeFirstLetter(getWeekDayName(day(firstDayOfCurrentMonth, dayOfWeek), 'short'))}</span
|
||||
>
|
||||
<span class="caption">
|
||||
{capitalizeFirstLetter(getWeekDayName(day(firstDayOfCurrentMonth, dayOfWeek), 'short'))}
|
||||
</span>
|
||||
{/each}
|
||||
|
||||
{#each [...Array(displayedWeeksCount).keys()] as weekIndex}
|
||||
|
@ -8,5 +8,5 @@
|
||||
<path
|
||||
{opacity}
|
||||
d="M 8 1.320313 L 0.660156 8.132813 L 1.339844 8.867188 L 2 8.253906 L 2 14 L 7 14 L 7 9 L 9 9 L 9 14 L 14 14 L 14 8.253906 L 14.660156 8.867188 L 15.339844 8.132813 Z M 8 2.679688 L 13 7.328125 L 13 13 L 10 13 L 10 8 L 6 8 L 6 13 L 3 13 L 3 7.328125 Z"
|
||||
/></svg
|
||||
>
|
||||
/>
|
||||
</svg>
|
||||
|
@ -8,5 +8,5 @@
|
||||
<path
|
||||
{opacity}
|
||||
d="M 14.5 2.792969 L 5.5 11.792969 L 1.851563 8.148438 L 1.5 7.792969 L 0.792969 8.5 L 1.148438 8.851563 L 5.5 13.207031 L 15.207031 3.5 Z"
|
||||
/></svg
|
||||
>
|
||||
/>
|
||||
</svg>
|
||||
|
@ -47,7 +47,7 @@
|
||||
$: localStorage.setItem('activity-filter', JSON.stringify(selectedFiltersRefs))
|
||||
$: localStorage.setItem('activity-newest-first', JSON.stringify(isNewestFirst))
|
||||
|
||||
client.findAll(activity.class.ActivityMessagesFilter, {}).then((res) => {
|
||||
void client.findAll(activity.class.ActivityMessagesFilter, {}).then((res) => {
|
||||
filters = res
|
||||
|
||||
if (saved !== null && saved !== undefined) {
|
||||
|
@ -92,10 +92,8 @@
|
||||
</svelte:fragment>
|
||||
<svelte:fragment slot="header">
|
||||
<div class="flex fs-title flex-gap-1">
|
||||
<span class="over-underline" on:click={handleMove}>{space?.name}</span>><span
|
||||
class="over-underline"
|
||||
on:click={handleMove}>{state?.name}</span
|
||||
>
|
||||
<span class="over-underline" on:click={handleMove}>{space?.name}</span>>
|
||||
<span class="over-underline" on:click={handleMove}>{state?.name}</span>
|
||||
</div>
|
||||
</svelte:fragment>
|
||||
<svelte:fragment slot="tools">
|
||||
|
@ -126,8 +126,10 @@
|
||||
use:tooltip={{
|
||||
component: Label,
|
||||
props: { label: core.string.CreatedBy }
|
||||
}}><Label label={core.string.CreatedBy} /></span
|
||||
}}
|
||||
>
|
||||
<Label label={core.string.CreatedBy} />
|
||||
</span>
|
||||
<div class="flex flex-grow min-w-0">
|
||||
<EmployeeBox
|
||||
value={creatorPersonRef}
|
||||
|
@ -186,8 +186,10 @@
|
||||
if (openable) {
|
||||
dispatch('update', 'open')
|
||||
}
|
||||
}}>{value}</span
|
||||
}}
|
||||
>
|
||||
{value}
|
||||
</span>
|
||||
<Button
|
||||
focusIndex={3}
|
||||
kind={'ghost'}
|
||||
|
@ -47,9 +47,9 @@
|
||||
<div class="icon circle">
|
||||
<Company size={'small'} />
|
||||
</div>
|
||||
<span class="overflow-label label" class:no-underline={noUnderline || disabled} class:fs-bold={accent}
|
||||
>{value.name}</span
|
||||
>
|
||||
<span class="overflow-label label" class:no-underline={noUnderline || disabled} class:fs-bold={accent}>
|
||||
{value.name}
|
||||
</span>
|
||||
</div>
|
||||
</DocNavLink>
|
||||
{:else if type === 'text'}
|
||||
|
@ -39,9 +39,9 @@
|
||||
{#if shouldShowAvatar}
|
||||
<div class="icon"><Icon icon={lead.icon.Lead} size={'small'} /></div>
|
||||
{/if}
|
||||
<span class="label nowrap" class:no-underline={noUnderline || disabled} class:fs-bold={accent}
|
||||
>{value.identifier}</span
|
||||
>
|
||||
<span class="label nowrap" class:no-underline={noUnderline || disabled} class:fs-bold={accent}>
|
||||
{value.identifier}
|
||||
</span>
|
||||
</div>
|
||||
</DocNavLink>
|
||||
{:else if type === 'text'}
|
||||
|
@ -164,8 +164,10 @@
|
||||
setMetadataLocalStorage(login.metadata.LoginEndpoint, null)
|
||||
setMetadataLocalStorage(login.metadata.LoginEmail, null)
|
||||
goTo('login')
|
||||
}}><Label label={login.string.ChangeAccount} /></NavLink
|
||||
}}
|
||||
>
|
||||
<Label label={login.string.ChangeAccount} />
|
||||
</NavLink>
|
||||
</div>
|
||||
</div>
|
||||
{/await}
|
||||
|
@ -70,12 +70,12 @@
|
||||
<tr class="antiTable-body__row">
|
||||
<td><PersonRefPresenter value={requested.employee} /></td>
|
||||
<td><BooleanIcon value={requested.decision} /></td>
|
||||
<td
|
||||
>{#if requested.comment}
|
||||
<td>
|
||||
{#if requested.comment}
|
||||
<ShowMore limit={126} fixed>
|
||||
<MessageViewer message={requested.comment.message} />
|
||||
</ShowMore>{/if}</td
|
||||
>
|
||||
</ShowMore>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/each}
|
||||
</tbody>
|
||||
|
@ -24,5 +24,7 @@
|
||||
|
||||
<span class="label nowrap">
|
||||
{#if shortLabel}
|
||||
{shortLabel}-{/if}{value.name}</span
|
||||
>
|
||||
{shortLabel}-
|
||||
{/if}
|
||||
{value.name}
|
||||
</span>
|
||||
|
@ -33,9 +33,9 @@
|
||||
<div class="icon">
|
||||
<Icon icon={task.icon.Task} size={'small'} />
|
||||
</div>
|
||||
<span class="label nowrap"
|
||||
>{#if shortLabel}{shortLabel}-{/if}{value.number}</span
|
||||
>
|
||||
<span class="label nowrap">
|
||||
{#if shortLabel}{shortLabel}-{/if}{value.number}
|
||||
</span>
|
||||
</div>
|
||||
</DocNavLink>
|
||||
{/if}
|
||||
|
@ -112,24 +112,24 @@
|
||||
maxDigitsAfterPoint={3}
|
||||
kind={'editbox'}
|
||||
/>
|
||||
<Button kind={'link-bordered'} on:click={() => (data.value = 1)}
|
||||
><span slot="content">1<Label label={tracker.string.HourLabel} /></span></Button
|
||||
>
|
||||
<Button kind={'link-bordered'} on:click={() => (data.value = 2)}
|
||||
><span slot="content">2<Label label={tracker.string.HourLabel} /></span></Button
|
||||
>
|
||||
<Button kind={'link-bordered'} on:click={() => (data.value = 4)}
|
||||
><span slot="content">4<Label label={tracker.string.HourLabel} /></span></Button
|
||||
>
|
||||
<Button kind={'link-bordered'} on:click={() => (data.value = 6)}
|
||||
><span slot="content">6<Label label={tracker.string.HourLabel} /></span></Button
|
||||
>
|
||||
<Button kind={'link-bordered'} on:click={() => (data.value = 7)}
|
||||
><span slot="content">7<Label label={tracker.string.HourLabel} /></span></Button
|
||||
>
|
||||
<Button kind={'link-bordered'} on:click={() => (data.value = 8)}
|
||||
><span slot="content">8<Label label={tracker.string.HourLabel} /></span></Button
|
||||
>
|
||||
<Button kind={'link-bordered'} on:click={() => (data.value = 1)}>
|
||||
<span slot="content">1<Label label={tracker.string.HourLabel} /></span>
|
||||
</Button>
|
||||
<Button kind={'link-bordered'} on:click={() => (data.value = 2)}>
|
||||
<span slot="content">2<Label label={tracker.string.HourLabel} /></span>
|
||||
</Button>
|
||||
<Button kind={'link-bordered'} on:click={() => (data.value = 4)}>
|
||||
<span slot="content">4<Label label={tracker.string.HourLabel} /></span>
|
||||
</Button>
|
||||
<Button kind={'link-bordered'} on:click={() => (data.value = 6)}>
|
||||
<span slot="content">6<Label label={tracker.string.HourLabel} /></span>
|
||||
</Button>
|
||||
<Button kind={'link-bordered'} on:click={() => (data.value = 7)}>
|
||||
<span slot="content">7<Label label={tracker.string.HourLabel} /></span>
|
||||
</Button>
|
||||
<Button kind={'link-bordered'} on:click={() => (data.value = 8)}>
|
||||
<span slot="content">8<Label label={tracker.string.HourLabel} /></span>
|
||||
</Button>
|
||||
</div>
|
||||
<EditBox bind:value={data.description} placeholder={tracker.string.TimeSpendReportDescription} kind={'editbox'} />
|
||||
<svelte:fragment slot="pool">
|
||||
|
@ -109,6 +109,6 @@
|
||||
<DatePresenter value={report.date} kind={'ghost'} size={'small'} />
|
||||
</FixedColumn>
|
||||
</div>
|
||||
</div></svelte:fragment
|
||||
>
|
||||
</div>
|
||||
</svelte:fragment>
|
||||
</ListView>
|
||||
|
Loading…
Reference in New Issue
Block a user