flex-grow instead of flex-1

This commit is contained in:
2023-05-17 05:27:59 +02:00
parent 9765806dca
commit 6c52785597
7 changed files with 11 additions and 11 deletions

View File

@@ -43,7 +43,7 @@ const handleKeydown = (event: KeyboardEvent) => {
}
</script>
<template>
<div id="search-container" class="relative h-full flex-1">
<div id="search-container" class="relative h-full flex-grow">
<input
type="text"
placeholder="Search for notes"

View File

@@ -14,7 +14,7 @@ const emit = defineEmits<{
<template>
<li class="flex flex-row">
<a
class="flex-1 items-center px-2 py-1"
class="flex-grow items-center px-2 py-1"
@click.stop.prevent="() => emit('goToNote')"
@mousedown.prevent
:class="{
@@ -28,7 +28,7 @@ const emit = defineEmits<{
>
current
</span>
<span class="flex-1">{{ result.title }}</span>
<span class="flex-grow">{{ result.title }}</span>
<span>{{ formatDate(result.modified) }}</span>
</a>
</li>