Skip to content

Commit

Permalink
fix icons and bug when adding columns
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy committed Dec 18, 2023
1 parent f63bb8d commit 6aec4b3
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 84 deletions.
18 changes: 9 additions & 9 deletions ui/src/BoardEditor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,16 @@
itemClass="unselectable"
>
<div class="group">
<div class="grip" ><SvgIcon icon=faGripVertical/></div>
<div class="grip" ><SvgIcon icon=faGripVertical size=12px/></div>
<sl-input class='textarea' value={groups[index].name} on:input={e=>groups[index].name = e.target.value}></sl-input>
<sl-button size="small" on:click={deleteGroup(index)}>
<SvgIcon icon=faTrash/>
<SvgIcon icon=faTrash size=12px/>
</sl-button>
</div>
</DragDropList>

<div class="add-item" on:click={() => addGroup()}>
<SvgIcon icon=faPlus/>
<SvgIcon icon=faPlus size=12px/>
<span>Add Column</span>
</div>
</div>
Expand All @@ -190,19 +190,19 @@
itemClass="unselectable"
>
<div class="label-def">
<div class="grip" ><SvgIcon icon=faGripVertical/></div>
<div class="grip" ><SvgIcon icon=faGripVertical size=12px/></div>
<sl-button on:click={()=>{showEmojiPicker = index;emojiDialog.show()}} >
<span style="font-size:180%">{labelDefs[index].emoji}</span>
</sl-button>
<sl-input class='textarea' value={labelDefs[index].toolTip} title="label name"
on:input={e=>labelDefs[index].toolTip = e.target.value}> </sl-input>
<sl-button size="small" on:click={deleteLabelDef(index)} >
<SvgIcon icon=faTrash/>
<SvgIcon icon=faTrash size=12px/>
</sl-button>
</div>
</DragDropList>
<div class="add-item" on:click={() => addLabelDef()}>
<SvgIcon icon=faPlus/>
<SvgIcon icon=faPlus size=12px/>
<span>Add Label</span>
</div>
<sl-dialog label="Choose Emoji" bind:this={emojiDialog}>
Expand Down Expand Up @@ -254,7 +254,7 @@
itemClass="unselectable"
>
<div class="category-def">
<div class="grip" ><SvgIcon icon=faGripVertical/></div>
<div class="grip" ><SvgIcon icon=faGripVertical size=12px/></div>
<sl-button icon on:click={()=>{
hex = categoryDefs[index].color
showColorPicker = index;colorDialog.show()}} >
Expand All @@ -263,12 +263,12 @@
<sl-input class='textarea' style="margin-left:10px" value={categoryDefs[index].name} title="category name"
on:input={e=>categoryDefs[index].name = e.target.value}></sl-input>
<sl-button size="small" on:click={deleteCategoryDef(index)} >
<SvgIcon icon=faTrash/>
<SvgIcon icon=faTrash size=12px/>
</sl-button>
</div>
</DragDropList>
<div class="add-item" on:click={() => addCategoryDef()}>
<SvgIcon icon=faPlus/>
<SvgIcon icon=faPlus size=12px/>
<span>Add Category</span>
</div>
</div>
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions ui/src/KanDoPane.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { getContext, onMount } from "svelte";
import CardEditor from "./CardEditor.svelte";
import CardDetails from "./CardDetails.svelte";
import EmojiIcon from "./icons/EmojiIcon.svelte";
import EmojiIcon from "./EmojiIcon.svelte";
//import { sortBy } from "lodash/fp";
import type { KanDoStore } from "./store";
import LabelSelector from "./LabelSelector.svelte";
Expand Down Expand Up @@ -103,7 +103,6 @@
}
} else {
addingColumn = false
console.log("HERE haschanged")
}
}
Expand Down Expand Up @@ -347,6 +346,7 @@
const newGroups = cloneDeep($state.groups)
newGroups.push(new Group(newColumnName))
newColumnName = ""
columnNameElem.value=""
activeBoard.requestChanges([
{
type: "set-groups",
Expand Down
2 changes: 1 addition & 1 deletion ui/src/LabelSelector.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import EmojiIcon from './icons/EmojiIcon.svelte'
import EmojiIcon from './EmojiIcon.svelte'
import { getContext } from "svelte";
import type { KanDoStore } from "./store";
Expand Down
10 changes: 0 additions & 10 deletions ui/src/icons/DownIcon.svelte

This file was deleted.

42 changes: 0 additions & 42 deletions ui/src/icons/TSLogoIcon.svelte

This file was deleted.

8 changes: 0 additions & 8 deletions ui/src/icons/UnarchiveIcon.svelte

This file was deleted.

10 changes: 0 additions & 10 deletions ui/src/icons/UpIcon.svelte

This file was deleted.

3 changes: 1 addition & 2 deletions ui/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ export { default as SortSelector} from './LabelSelector.svelte';
export { default as CardEditor} from './CardEditor.svelte';
export { default as CardEditor} from './CardEditor.svelte';
export { default as Toolbar } from './Toolbar.svelte';
export { default as EmojiIcon } from './icons/EmojiIcon.svelte';
export { default as TSLogoIcon } from './icons/TSLogoIcon.svelte';
export { default as EmojiIcon } from './EmojiIcon.svelte';
export { default as KDLogoIcon } from './icons/KDLogoIcon.svelte';
Loading

0 comments on commit 6aec4b3

Please sign in to comment.