🎨 Simplify formatting and improve readability in SearchBar component
This commit is contained in:
@@ -60,9 +60,7 @@
|
|||||||
{{ searchError }}
|
{{ searchError }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="isSearching" class="search-status">
|
<div v-if="isSearching" class="search-status">Searching...</div>
|
||||||
Searching...
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -104,7 +102,9 @@ const {
|
|||||||
hasSearchResults
|
hasSearchResults
|
||||||
} = useGamemasterSearch(fileLines, displayLines);
|
} = useGamemasterSearch(fileLines, displayLines);
|
||||||
|
|
||||||
const isDisabled = computed(() => props.disabled || fileLines.value.length === 0);
|
const isDisabled = computed(
|
||||||
|
() => props.disabled || fileLines.value.length === 0
|
||||||
|
);
|
||||||
|
|
||||||
const currentResultLineTitle = computed(() => {
|
const currentResultLineTitle = computed(() => {
|
||||||
if (!currentResultLineNumber.value) return '';
|
if (!currentResultLineNumber.value) return '';
|
||||||
|
|||||||
Reference in New Issue
Block a user