Fix ChannelsEditor (#1833)

This commit is contained in:
Alexander Platov 2022-05-23 04:43:06 +03:00 committed by GitHub
parent 2591bd7781
commit b8d68d9fa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 3 deletions

View File

@ -22,6 +22,8 @@
<style lang="scss"> <style lang="scss">
.spinner-container { .spinner-container {
display: flex; display: flex;
justify-content: center;
align-items: center;
height: 100%; height: 100%;
} }
@ -35,7 +37,6 @@
} }
.spinner-container .inner { .spinner-container .inner {
margin: auto;
opacity: 0; opacity: 0;
animation-name: makeVisible; animation-name: makeVisible;
animation-duration: 0.25s; animation-duration: 0.25s;

View File

@ -180,6 +180,8 @@
.box { .box {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: flex-start;
height: 100%;
} }
.scroller-container.bottomStart { .scroller-container.bottomStart {
justify-content: flex-end; justify-content: flex-end;

View File

@ -160,7 +160,7 @@
}} }}
on:click={copyChannel} on:click={copyChannel}
/> />
{#if editable !== undefined} {#if editable && editable === true}
<Button <Button
focusIndex={4} focusIndex={4}
kind={'transparent'} kind={'transparent'}

View File

@ -26,7 +26,7 @@
export let attachedTo: Ref<Doc> export let attachedTo: Ref<Doc>
export let attachedClass: Ref<Class<Doc>> export let attachedClass: Ref<Class<Doc>>
export let integrations: Set<Ref<Doc>> | undefined = undefined export let integrations: Set<Ref<Doc>> | undefined = undefined
export let editable: boolean | undefined = true export let editable: boolean = true
export let allowOpen = true export let allowOpen = true
export let focusIndex = -1 export let focusIndex = -1