Show title on expand button

This commit is contained in:
josdejong 2020-06-02 22:38:46 +02:00
parent 2a885ac5ef
commit 3ea589a126
1 changed files with 10 additions and 2 deletions

View File

@ -183,7 +183,11 @@
<div class='json-node'>
{#if type === 'array'}
<div class='header'>
<button class='expand' on:click={toggleExpand}>
<button
class='expand'
on:click={toggleExpand}
title='Expand or collapse this array (Ctrl+Click to expand/collapse recursively)'
>
{#if expanded}
<Icon data={faCaretDown} />
{:else}
@ -236,7 +240,11 @@
{/if}
{:else if type === 'object'}
<div class='header'>
<button class='expand' on:click={toggleExpand}>
<button
class='expand'
on:click={toggleExpand}
title='Expand or collapse this object (Ctrl+Click to expand/collapse recursively)'
>
{#if expanded}
<Icon data={faCaretDown} />
{:else}