flex-grow instead of flex-1
This commit is contained in:
@@ -52,8 +52,8 @@ defineExpose({ handleKeypress })
|
|||||||
class="menu rounded-md border-[1px] bg-base-100 p-2 text-[0.875rem] text-black shadow-md"
|
class="menu rounded-md border-[1px] bg-base-100 p-2 text-[0.875rem] text-black shadow-md"
|
||||||
>
|
>
|
||||||
<li class="flex flex-row" @click="emit('createLink', props.autocompleteText)">
|
<li class="flex flex-row" @click="emit('createLink', props.autocompleteText)">
|
||||||
<a class="flex-1 px-2 py-1" :class="!activeResult && 'active'">
|
<a class="flex-grow px-2 py-1" :class="!activeResult && 'active'">
|
||||||
<span class="flex-1">{{ props.autocompleteText }}</span>
|
<span class="flex-grow">{{ props.autocompleteText }}</span>
|
||||||
<i class="fas fa-plus-circle ml-auto text-white" />
|
<i class="fas fa-plus-circle ml-auto text-white" />
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -61,17 +61,17 @@ const setRoot = async (closeModal: () => Promise<Boolean>) => {
|
|||||||
></i>
|
></i>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
class="flex-1 bg-transparent py-1 outline-none"
|
class="flex-grow bg-transparent py-1 outline-none"
|
||||||
v-model="noteTitle"
|
v-model="noteTitle"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</NoteToolbar>
|
</NoteToolbar>
|
||||||
<NoteEditor
|
<NoteEditor
|
||||||
class="h-100 flex-1 overflow-auto"
|
class="flex-grow overflow-auto"
|
||||||
:note="activeNote"
|
:note="activeNote"
|
||||||
@update="updateNoteContent"
|
@update="updateNoteContent"
|
||||||
v-if="activeNote"
|
v-if="activeNote"
|
||||||
/>
|
></NoteEditor>
|
||||||
<NoteReferences :references="references" />
|
<NoteReferences :references="references" />
|
||||||
<hr class="my-3" />
|
<hr class="my-3" />
|
||||||
<div class="flex text-sm text-secondary">
|
<div class="flex text-sm text-secondary">
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ const createLink = (link: string) => {
|
|||||||
<template>
|
<template>
|
||||||
<div class="relative" ref="editorElement">
|
<div class="relative" ref="editorElement">
|
||||||
<CKEditor
|
<CKEditor
|
||||||
class="h-full text-[110%] font-light"
|
class="flex-grow text-[110%] font-light"
|
||||||
:editor="editor"
|
:editor="editor"
|
||||||
v-model="editorData"
|
v-model="editorData"
|
||||||
:config="editorConfig"
|
:config="editorConfig"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ const emit = defineEmits<{
|
|||||||
<template>
|
<template>
|
||||||
<div class="mb-2 flex items-center">
|
<div class="mb-2 flex items-center">
|
||||||
<h1
|
<h1
|
||||||
class="mr-2 flex flex-1 items-center rounded-md pr-2 text-3xl font-semibold hover:bg-gray-200"
|
class="mr-2 flex flex-grow items-center rounded-md pr-2 text-3xl font-semibold hover:bg-gray-200"
|
||||||
>
|
>
|
||||||
<slot name="title"></slot>
|
<slot name="title"></slot>
|
||||||
</h1>
|
</h1>
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ const handleKeydown = (event: KeyboardEvent) => {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div id="search-container" class="relative h-full flex-1">
|
<div id="search-container" class="relative h-full flex-grow">
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="Search for notes"
|
placeholder="Search for notes"
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ const emit = defineEmits<{
|
|||||||
<template>
|
<template>
|
||||||
<li class="flex flex-row">
|
<li class="flex flex-row">
|
||||||
<a
|
<a
|
||||||
class="flex-1 items-center px-2 py-1"
|
class="flex-grow items-center px-2 py-1"
|
||||||
@click.stop.prevent="() => emit('goToNote')"
|
@click.stop.prevent="() => emit('goToNote')"
|
||||||
@mousedown.prevent
|
@mousedown.prevent
|
||||||
:class="{
|
:class="{
|
||||||
@@ -28,7 +28,7 @@ const emit = defineEmits<{
|
|||||||
>
|
>
|
||||||
current
|
current
|
||||||
</span>
|
</span>
|
||||||
<span class="flex-1">{{ result.title }}</span>
|
<span class="flex-grow">{{ result.title }}</span>
|
||||||
<span>{{ formatDate(result.modified) }}</span>
|
<span>{{ formatDate(result.modified) }}</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ const emit = defineEmits<{
|
|||||||
@click="setActiveNote(rootNote?.id)"
|
@click="setActiveNote(rootNote?.id)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex h-full flex-1 flex-row items-center gap-2 pl-5 pr-3">
|
<div class="flex h-full flex-grow flex-row items-center gap-2 pl-5 pr-3">
|
||||||
<SearchBar />
|
<SearchBar />
|
||||||
<button
|
<button
|
||||||
class="btn-outline btn-sm btn py-1 text-white"
|
class="btn-outline btn-sm btn py-1 text-white"
|
||||||
|
|||||||
Reference in New Issue
Block a user