Macavity / siyuan-database-properties-panel

MIT License
7 stars 1 forks source link

The text column shows extra indentation. #20

Open Achuan-2 opened 1 month ago

Achuan-2 commented 1 month ago

Describe the bug

PixPin_2024-10-30_09-55-01

Environment:

Achuan-2 commented 1 month ago

https://github.com/Macavity/siyuan-database-properties-panel/blob/main/src/components/ValueTypes/TextValue.svelte

<script lang="ts">
  import type { IAVCellValue } from "siyuan";
  export let value: IAVCellValue;
</script>

<textarea
  style="resize: vertical"
  rows={value.text.content.split("\n").length}
  class="b3-text-field b3-text-field--text fn__flex-1"
>
  {value.text.content}
</textarea>

should be

<script lang="ts">
  import type { IAVCellValue } from "siyuan";
  export let value: IAVCellValue;
</script>

<textarea
  style="resize: vertical"
  rows={value.text.content.split("\n").length}
  class="b3-text-field b3-text-field--text fn__flex-1"
>{value.text.content}</textarea>