This is an automated email from the ASF dual-hosted git repository.
davin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil-vscode.git
The following commit(s) were added to refs/heads/main by this push:
new 3b2a593 fix the header min/max button icons
3b2a593 is described below
commit 3b2a5938c1ac3f07613681f38e7e62fd6ab449a2
Author: Davin Shearer <[email protected]>
AuthorDate: Tue Aug 8 17:01:39 2023 -0400
fix the header min/max button icons
---
src/svelte/src/components/Header/Header.svelte | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/svelte/src/components/Header/Header.svelte
b/src/svelte/src/components/Header/Header.svelte
index 7b15751..0a926ae 100644
--- a/src/svelte/src/components/Header/Header.svelte
+++ b/src/svelte/src/components/Header/Header.svelte
@@ -49,9 +49,17 @@ limitations under the License.
<button
class={$UIThemeCSSClass + ' minmax-icon'}
on:click={() => {
- hideChildren = hideChildren ? false : true
- }}><span class="material-symbols-outlined">expand_all</span></button
+ hideChildren = !hideChildren
+ }}
>
+ <span class="material-symbols-outlined">
+ {#if hideChildren}
+ expand_all
+ {:else}
+ expand_less
+ {/if}
+ </span>
+ </button>
</div>
</FlexContainer>
{/if}