Skip to content

Commit

Permalink
fix(nextPrev): 🐛 Fix overflowing next/prev item
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Nov 18, 2021
1 parent e7a463c commit eec41a7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"Hierarchy Note",
"WriteBCToFile",
"LimitTrailFields",
"CSV Crumbs"
"CSV Crumbs",
"nextPrev"
]
}
4 changes: 2 additions & 2 deletions src/Components/NextPrev.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
});
</script>

<span class="BC-NextPrev-Container">
<div class="BC-NextPrev-Container">
<span class="BC-prevs">
{#if prev.length}←{/if}
{#each prev as p}
Expand All @@ -46,7 +46,7 @@
{/each}
{#if next.length}→{/if}
</span>
</span>
</div>

<style>
/* span {
Expand Down
8 changes: 7 additions & 1 deletion src/sharedFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,13 @@ export async function getNeighbourObjArr(
};

userHierarchies.forEach((hier) => {
const fieldsArr = Object.values(hier) as [string[], string[], string[]];
const fieldsArr = Object.values(hier) as [
string[],
string[],
string[],
string[],
string[]
];
const newHier: HierarchyFields = {
up: {},
same: {},
Expand Down

0 comments on commit eec41a7

Please sign in to comment.