|
72 | 72 | clear(); |
73 | 73 | updateSearchTerm(); |
74 | 74 | }} |
75 | | - title={show ? strings.toolbar.searchAndReplace.goBack : strings.toolbar.searchAndReplace.searchAndReplace} |
| 75 | + title={show |
| 76 | + ? strings.toolbar.searchAndReplace.goBack |
| 77 | + : strings.toolbar.searchAndReplace.searchAndReplace} |
76 | 78 | > |
77 | 79 | {#if show} |
78 | 80 | <ArrowLeft class="edra-toolbar-icon" /> |
|
82 | 84 | </button> |
83 | 85 | {#if show} |
84 | 86 | <div class="edra-search-and-replace-content"> |
85 | | - <input placeholder={strings.toolbar.searchAndReplace.searchPlaceholder} bind:value={searchText} oninput={() => updateSearchTerm()} /> |
| 87 | + <input |
| 88 | + placeholder={strings.toolbar.searchAndReplace.searchPlaceholder} |
| 89 | + bind:value={searchText} |
| 90 | + oninput={() => updateSearchTerm()} |
| 91 | + /> |
86 | 92 | <span>{searchCount > 0 ? searchIndex + 1 : 0}/{searchCount}</span> |
87 | 93 | <button |
88 | 94 | class="edra-command-button" |
|
95 | 101 | > |
96 | 102 | <CaseSensitive class="edra-toolbar-icon" /> |
97 | 103 | </button> |
98 | | - <button class="edra-command-button" onclick={previous} title={strings.toolbar.searchAndReplace.previous}> |
| 104 | + <button |
| 105 | + class="edra-command-button" |
| 106 | + onclick={previous} |
| 107 | + title={strings.toolbar.searchAndReplace.previous} |
| 108 | + > |
99 | 109 | <ArrowLeft class="edra-toolbar-icon" /> |
100 | 110 | </button> |
101 | | - <button class="edra-command-button" onclick={next} title={strings.toolbar.searchAndReplace.next}> |
| 111 | + <button |
| 112 | + class="edra-command-button" |
| 113 | + onclick={next} |
| 114 | + title={strings.toolbar.searchAndReplace.next} |
| 115 | + > |
102 | 116 | <ArrowRight class="edra-toolbar-icon" /> |
103 | 117 | </button> |
104 | 118 | <span class="separator"></span> |
105 | 119 |
|
106 | | - <input placeholder={strings.toolbar.searchAndReplace.replacePlaceholder} bind:value={replaceText} oninput={() => updateSearchTerm()} /> |
107 | | - <button class="edra-command-button" onclick={replace} title={strings.toolbar.searchAndReplace.replace}> |
| 120 | + <input |
| 121 | + placeholder={strings.toolbar.searchAndReplace.replacePlaceholder} |
| 122 | + bind:value={replaceText} |
| 123 | + oninput={() => updateSearchTerm()} |
| 124 | + /> |
| 125 | + <button |
| 126 | + class="edra-command-button" |
| 127 | + onclick={replace} |
| 128 | + title={strings.toolbar.searchAndReplace.replace} |
| 129 | + > |
108 | 130 | <Replace class="edra-toolbar-icon" /> |
109 | 131 | </button> |
110 | | - <button class="edra-command-button" onclick={replaceAll} title={strings.toolbar.searchAndReplace.replaceAll}> |
| 132 | + <button |
| 133 | + class="edra-command-button" |
| 134 | + onclick={replaceAll} |
| 135 | + title={strings.toolbar.searchAndReplace.replaceAll} |
| 136 | + > |
111 | 137 | <ReplaceAll class="edra-toolbar-icon" /> |
112 | 138 | </button> |
113 | 139 | </div> |
|
0 commit comments