mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-22 16:27:22 +00:00
Fix progress rotation orbit (#2460)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
parent
dc6d85060c
commit
20bf706536
@ -107,7 +107,9 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if loading}
|
{#if loading}
|
||||||
|
<div class="btn-icon pointer-events-none caption-color spinner" class:resetIconSize>
|
||||||
<Spinner size={iconSize} />
|
<Spinner size={iconSize} />
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if label}
|
{#if label}
|
||||||
<span class="overflow-label disabled pointer-events-none" class:ml-2={loading}>
|
<span class="overflow-label disabled pointer-events-none" class:ml-2={loading}>
|
||||||
@ -172,7 +174,7 @@
|
|||||||
transition: color 0.15s;
|
transition: color 0.15s;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
&:not(.only-icon) .btn-icon {
|
&:not(.only-icon) .btn-icon:not(.spinner) {
|
||||||
margin-right: 0.5rem;
|
margin-right: 0.5rem;
|
||||||
}
|
}
|
||||||
&.no-border:not(.only-icon) .btn-icon,
|
&.no-border:not(.only-icon) .btn-icon,
|
||||||
|
@ -21,19 +21,33 @@
|
|||||||
<div class="spinner spinner-{size}">
|
<div class="spinner spinner-{size}">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||||
<linearGradient id="a" gradientUnits="userSpaceOnUse" x1="0" y1="22" x2="0" y2="2">
|
<linearGradient id="a" gradientUnits="userSpaceOnUse" x1="0" y1="22" x2="0" y2="2">
|
||||||
<stop offset="0" stop-color={'var(--theme-caption-color)'} />
|
<stop offset="0" stop-color={'var(--caption-color)'} />
|
||||||
<stop offset="1" stop-color={'var(--theme-caption-color)'} stop-opacity="0" />
|
<stop offset="1" stop-color={'var(--caption-color)'} stop-opacity="0" />
|
||||||
</linearGradient>
|
</linearGradient>
|
||||||
<path d="M12 0v1c6.1 0 11 4.9 11 11s-4.9 11-11 11v1c6.6 0 12-5.4 12-12S18.6 0 12 0z" fill="url(#a)" />
|
<g>
|
||||||
<path d="M12 23C5.9 23 1 18.1 1 12S5.9 1 12 1V0C5.4 0 0 5.4 0 12s5.4 12 12 12v-1z" fill="#fff" />
|
<animateTransform
|
||||||
|
attributeName="transform"
|
||||||
|
attributeType="XML"
|
||||||
|
type="rotate"
|
||||||
|
from="0 12 12"
|
||||||
|
to="360 12 12"
|
||||||
|
dur="1s"
|
||||||
|
repeatCount="indefinite"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M12,22.5C6.2,22.5,1.5,17.8,1.5,12C1.5,6.2,6.2,1.5,12,1.5v-1C5.6,0.5,0.5,5.6,0.5,12c0,6.4,5.1,11.5,11.5,11.5V22.5z"
|
||||||
|
fill="var(--caption-color)"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M12,0.5v1c5.8,0,10.5,4.7,10.5,10.5c0,5.8-4.7,10.5-10.5,10.5v1c6.4,0,11.5-5.1,11.5-11.5C23.5,5.6,18.4,0.5,12,0.5z"
|
||||||
|
fill="url(#a)"
|
||||||
|
/>
|
||||||
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.spinner {
|
.spinner {
|
||||||
-webkit-animation: spinCircle 1s infinite linear;
|
|
||||||
animation: spinCircle 1s infinite linear;
|
|
||||||
|
|
||||||
&-inline {
|
&-inline {
|
||||||
width: 0.75rem;
|
width: 0.75rem;
|
||||||
height: 0.75rem;
|
height: 0.75rem;
|
||||||
@ -55,20 +69,4 @@
|
|||||||
height: 3rem;
|
height: 3rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@-webkit-keyframes spinCircle {
|
|
||||||
from {
|
|
||||||
-webkit-transform: rotate(0deg);
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
-webkit-transform: rotate(359deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@keyframes spinCircle {
|
|
||||||
from {
|
|
||||||
transform: rotate(0deg);
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
transform: rotate(359deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -65,6 +65,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||||
<ListView count={reports.length}>
|
<ListView count={reports.length}>
|
||||||
<svelte:fragment slot="item" let:item>
|
<svelte:fragment slot="item" let:item>
|
||||||
{@const report = reports[item]}
|
{@const report = reports[item]}
|
||||||
@ -100,7 +101,7 @@
|
|||||||
</span>
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-center flex-no-shrink">
|
<div class="flex-center flex-no-shrink gap-2">
|
||||||
<UserBox
|
<UserBox
|
||||||
label={tracker.string.Assignee}
|
label={tracker.string.Assignee}
|
||||||
_class={contact.class.Employee}
|
_class={contact.class.Employee}
|
||||||
|
Loading…
Reference in New Issue
Block a user