Skip to content

Commit

Permalink
better styles for manipulations
Browse files Browse the repository at this point in the history
  • Loading branch information
mishankov committed Mar 1, 2024
1 parent ac28f81 commit 8697e48
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/manipulations/components/Append.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@
<div>
<span>Suffix </span><input bind:value={suffix} />
</div>

<style>
div {
display: flex;
flex-direction: column;
gap: 5px;
}
</style>
8 changes: 8 additions & 0 deletions src/manipulations/components/Compose.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@
<div>
<span>Replace placeholder</span> <input bind:value={placeholder}> <span>in pattern</span> <textarea bind:value={pattern} />
</div>

<style>
div {
display: flex;
flex-direction: column;
gap: 5px;
}
</style>
8 changes: 8 additions & 0 deletions src/manipulations/components/Prepend.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@
<span>Prefix </span><input bind:value={prefix} />
</div>

<style>
div {
display: flex;
flex-direction: column;
gap: 5px;
}
</style>

9 changes: 9 additions & 0 deletions src/manipulations/components/Replace.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,12 @@
<div>
<span>Replace from</span> <input bind:value={from} /> <span>to</span> <input bind:value={to} />
</div>


<style>
div {
display: flex;
flex-direction: column;
gap: 5px;
}
</style>
8 changes: 8 additions & 0 deletions src/manipulations/components/Slice.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@
<div>
<span>Slice from</span> <input bind:value={start} type="number"/> <span>to</span> <input bind:value={end} type="number" />
</div>

<style>
div {
display: flex;
flex-direction: column;
gap: 5px;
}
</style>
10 changes: 9 additions & 1 deletion src/manipulations/components/SplitCompose.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,13 @@
</script>

<div>
<span>Split by</span> <input bind:value={splitString}/> <span> and replace placeholder</span> <input bind:value={placeholder} /> <span>in pattern</span> <textarea bind:value={pattern} />
<span>Split by</span> <input bind:value={splitString}/> <span>and replace placeholder</span> <input bind:value={placeholder} /> <span>in pattern</span> <textarea bind:value={pattern} />
</div>

<style>
div {
display: flex;
flex-direction: column;
gap: 5px;
}
</style>
10 changes: 9 additions & 1 deletion src/manipulations/components/SplitGetFromIndex.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,13 @@
</script>

<div>
<span>Split by </span><input bind:value={splitString} /><span>, get from </span><input bind:value={index} />
<span>Split by </span><input bind:value={splitString} /><span>get from </span><input bind:value={index} />
</div>

<style>
div {
display: flex;
flex-direction: column;
gap: 5px;
}
</style>

0 comments on commit 8697e48

Please sign in to comment.