mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-28 19:25:36 +00:00
Table footer left sticky (#2604)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
769c9bd341
commit
da7ea2a734
@ -362,6 +362,7 @@
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.footer {
|
.footer {
|
||||||
|
width: 100%;
|
||||||
background-color: var(--body-color);
|
background-color: var(--body-color);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
@ -369,12 +370,14 @@
|
|||||||
z-index: 2;
|
z-index: 2;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
box-shadow: inset 0 1px 0 0 var(--divider-color);
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100%;
|
width: max-content;
|
||||||
box-shadow: inset 0 1px 0 0 var(--divider-color);
|
position: sticky;
|
||||||
|
left: 0;
|
||||||
height: 2.5rem;
|
height: 2.5rem;
|
||||||
&.padding {
|
&.padding {
|
||||||
padding-left: 2.5rem;
|
padding-left: 2.5rem;
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
Button,
|
Button,
|
||||||
getEventPositionElement,
|
getEventPositionElement,
|
||||||
getPlatformColorForText,
|
getPlatformColorForText,
|
||||||
|
Loading,
|
||||||
SelectPopup,
|
SelectPopup,
|
||||||
showPopup,
|
showPopup,
|
||||||
ToggleButton
|
ToggleButton
|
||||||
@ -45,6 +46,7 @@
|
|||||||
(res) => {
|
(res) => {
|
||||||
preference = res[0]
|
preference = res[0]
|
||||||
attributes = getConfig(viewlet, preference)
|
attributes = getConfig(viewlet, preference)
|
||||||
|
loading = false
|
||||||
},
|
},
|
||||||
{ limit: 1 }
|
{ limit: 1 }
|
||||||
)
|
)
|
||||||
@ -55,7 +57,8 @@
|
|||||||
const client = getClient()
|
const client = getClient()
|
||||||
const hierarchy = client.getHierarchy()
|
const hierarchy = client.getHierarchy()
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
let attributes = getConfig(viewlet, preference)
|
let attributes: AttributeConfig[] = []
|
||||||
|
let loading = true
|
||||||
|
|
||||||
interface AttributeConfig {
|
interface AttributeConfig {
|
||||||
enabled: boolean
|
enabled: boolean
|
||||||
@ -307,6 +310,9 @@
|
|||||||
dispatch('close')
|
dispatch('close')
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
{#if loading}
|
||||||
|
<Loading />
|
||||||
|
{:else}
|
||||||
<div class="flex-row-stretch flex-wrap">
|
<div class="flex-row-stretch flex-wrap">
|
||||||
{#each enabled as attribute, i}
|
{#each enabled as attribute, i}
|
||||||
<div
|
<div
|
||||||
@ -361,6 +367,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
<svelte:fragment slot="footer">
|
<svelte:fragment slot="footer">
|
||||||
<Button label={view.string.RestoreDefaults} on:click={restoreDefault} />
|
<Button label={view.string.RestoreDefaults} on:click={restoreDefault} />
|
||||||
</svelte:fragment>
|
</svelte:fragment>
|
||||||
|
Loading…
Reference in New Issue
Block a user