diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..c21c654 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,5 @@ +# デフォルトの無視対象ファイル +/shelf/ +/workspace.xml +# エディターベースの HTTP クライアントリクエスト +/httpRequests/ diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..5055868 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..79ee123 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..03d9549 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..4cd553b --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/prettier.xml b/.idea/prettier.xml new file mode 100644 index 0000000..ea0f3cf --- /dev/null +++ b/.idea/prettier.xml @@ -0,0 +1,8 @@ + + + + + \ No newline at end of file diff --git a/.idea/svelte-diff-highlighting.iml b/.idea/svelte-diff-highlighting.iml new file mode 100644 index 0000000..24643cc --- /dev/null +++ b/.idea/svelte-diff-highlighting.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/lib/ui/Highlighted.svelte b/src/lib/ui/Highlighted.svelte index 86bee86..a43894f 100644 --- a/src/lib/ui/Highlighted.svelte +++ b/src/lib/ui/Highlighted.svelte @@ -38,7 +38,7 @@
-

+

{#each lines as line, i} {@const lineNumber = i + 1} @@ -76,9 +76,8 @@ background: var(--background, none); margin: var(--margin, 0); padding: var(--padding, 0); - white-space: var(--white-space, pre-wrap); + white-space: pre-wrap; tab-size: var(--tab-size, 2); - box-sizing: var(--box-sizing, border-box); scrollbar-width: var(--scrollbar-width, thin); scrollbar-color: var(--scrollbar-color, auto); @@ -87,7 +86,7 @@ width: var(--content-width, max-content); height: var(--content-height, max-content); padding: calc(var(--line-number-font-size, 14px) * 0.4) 0; - white-space: nowrap; + white-space: var(--white-space, nowrap); user-select: none; -webkit-user-select: none; --omission-icon-size: calc(var(--line-number-font-size, 14px) * 0.8); diff --git a/src/lib/ui/HighlightedRemovedLines.svelte b/src/lib/ui/HighlightedRemovedLines.svelte index 50f1a8c..42c1ad4 100644 --- a/src/lib/ui/HighlightedRemovedLines.svelte +++ b/src/lib/ui/HighlightedRemovedLines.svelte @@ -56,7 +56,7 @@ display: block; width: calc(100% - var(--omission-icon-size)); height: 100%; - background-color: var(--removed-line-color, #ffb74c); + background-color: var(--omission-icon-color, #ffb74c); } display: flex; diff --git a/src/lib/ui/OmissionIcon.svelte b/src/lib/ui/OmissionIcon.svelte index 7768646..3b7c944 100644 --- a/src/lib/ui/OmissionIcon.svelte +++ b/src/lib/ui/OmissionIcon.svelte @@ -6,9 +6,7 @@ } - +

- {#each syntaxHighlightSamples as sample} {/each}