Skip to content

Commit

Permalink
renamed PropertyBlock to Traits
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Jan 13, 2022
1 parent e7dc237 commit 2d814b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/view/ui/Content.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import type { Monster, Trait } from "@types";
import type { StatblockItem } from "src/data/constants";
import PropertyBlock from "./PropertyBlock.svelte";
import Traits from "./Traits.svelte";
import Spells from "./Spells.svelte";
import Heading from "./Heading.svelte";
import PropertyLine from "./PropertyLine.svelte";
Expand Down Expand Up @@ -190,7 +190,7 @@
try {
for (const block of blocks) {
const prop = createDiv("statblock-item-container");
new PropertyBlock({
new Traits({
target: prop,
props: {
name: block.name,
Expand Down Expand Up @@ -239,6 +239,7 @@
for (let target of targets) {
columnEl.appendChild(target);
console.log(target, target.clientHeight);
if (
columnEl.clientHeight > splitHeight &&
node.childElementCount != columns
Expand Down
4 changes: 2 additions & 2 deletions src/view/ui/Spells.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import type { Monster } from "@types";
import { stringifyYaml } from "obsidian";
import PropertyBlock from "./PropertyBlock.svelte";
import Traits from "./Traits.svelte";
import type { SpellsItem } from "src/data/constants";
export let monster: Monster;
Expand All @@ -19,7 +19,7 @@
</script>

<div class="spellcasting">
<PropertyBlock name={"Spellcasting"} desc={header} />
<Traits name={"Spellcasting"} desc={header} />
<ul class="spell-list">
{#each spells as spellItem, index}

Expand Down
File renamed without changes.

0 comments on commit 2d814b9

Please sign in to comment.