mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-19 11:43:35 +00:00
Fix a few small bugs
This commit is contained in:
parent
9e18bb1f3e
commit
b46fde360b
@ -181,7 +181,7 @@
|
||||
<div class="flex justify-between text-gray-1" on:click|stopPropagation>
|
||||
<div class="flex">
|
||||
<button
|
||||
class={cx("w-14 text-left", {
|
||||
class={cx("w-16 text-left", {
|
||||
"pointer-events-none opacity-50": disableActions,
|
||||
})}
|
||||
on:click={reply.start}>
|
||||
@ -189,7 +189,7 @@
|
||||
{$repliesCount}
|
||||
</button>
|
||||
<button
|
||||
class={cx("w-14 text-left", {
|
||||
class={cx("w-16 text-left", {
|
||||
"pointer-events-none opacity-50": disableActions,
|
||||
"text-accent": like,
|
||||
})}
|
||||
@ -201,7 +201,7 @@
|
||||
{$likesCount}
|
||||
</button>
|
||||
<button
|
||||
class={cx("w-16 text-left", {
|
||||
class={cx("w-20 text-left", {
|
||||
"pointer-events-none opacity-50": disableActions,
|
||||
"text-accent": zap,
|
||||
})}
|
||||
|
@ -40,7 +40,9 @@
|
||||
return toast.show("error", "A name is required for your list")
|
||||
}
|
||||
|
||||
if (find(e => e.id !== list.id && Tags.from(e).getMeta("d") === values.name, user.getLists())) {
|
||||
if (
|
||||
find(e => e.id !== list?.id && Tags.from(e).getMeta("d") === values.name, user.getLists())
|
||||
) {
|
||||
return toast.show("error", "That name is already in use")
|
||||
}
|
||||
|
||||
|
@ -66,16 +66,15 @@
|
||||
<i slot="before" class={`fa fa-${icon}`} />
|
||||
</Input>
|
||||
{/if}
|
||||
<div
|
||||
<slot name="button">
|
||||
<Anchor
|
||||
type="button"
|
||||
on:click={() => {
|
||||
isOpen = true
|
||||
}}>
|
||||
<slot name="button">
|
||||
<Anchor type="button">
|
||||
<i class="fa fa-upload" />
|
||||
</Anchor>
|
||||
</slot>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{#if quote}
|
||||
|
@ -35,7 +35,7 @@
|
||||
trigger: triggerType,
|
||||
animation: "shift-away",
|
||||
onShow: () => {
|
||||
const [tooltipContents] = tooltip.children
|
||||
const [tooltipContents] = tooltip?.children || []
|
||||
|
||||
// If we've already triggered it, tooltipContents will be empty
|
||||
if (tooltipContents) {
|
||||
|
Loading…
Reference in New Issue
Block a user