Make elements not selectable by default
This commit is contained in:
parent
d3a18893de
commit
5a244e585f
6 changed files with 8 additions and 6 deletions
|
|
@ -14,7 +14,6 @@ variations or spellings are incorrect.
|
||||||
## Todos
|
## Todos
|
||||||
|
|
||||||
- TODO Fix wide notes adding horizontal scroll bar
|
- TODO Fix wide notes adding horizontal scroll bar
|
||||||
- TODO Make text not selectable by default
|
|
||||||
- TODO Fix deleting note not unlinking it (and maybe other child inconsistencies
|
- TODO Fix deleting note not unlinking it (and maybe other child inconsistencies
|
||||||
as well)
|
as well)
|
||||||
- TODO Rename "note not found" to "loading..."
|
- TODO Rename "note not found" to "loading..."
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ window.addEventListener("keypress", (ev) => {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="flex h-screen touch-pan-x touch-pan-y flex-col">
|
<div class="flex h-screen touch-pan-x touch-pan-y select-none flex-col">
|
||||||
<CNavbar />
|
<CNavbar />
|
||||||
<div class="h-full overflow-auto p-1 pr-5">
|
<div class="h-full overflow-auto p-1 pr-5">
|
||||||
<CNote
|
<CNote
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="flex select-none items-center rounded-md bg-neutral-800 px-2 hover:bg-neutral-700 active:bg-neutral-500"
|
class="flex items-center rounded-md bg-neutral-800 px-2 hover:bg-neutral-700 active:bg-neutral-500"
|
||||||
>
|
>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="m-1">
|
<div class="m-1">
|
||||||
<div class="cursor-pointer select-none rounded px-2 hover:bg-neutral-700">
|
<div class="cursor-pointer rounded px-2 hover:bg-neutral-700">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -217,7 +217,10 @@ async function onInsertEditorCopy(): Promise<void> {
|
||||||
@close="onEditEditorClose"
|
@close="onEditEditorClose"
|
||||||
@finish="onEditEditorFinish"
|
@finish="onEditEditorFinish"
|
||||||
/>
|
/>
|
||||||
<div v-else-if="note && note.text.trim().length > 0" class="whitespace-pre-wrap px-1">
|
<div
|
||||||
|
v-else-if="note && note.text.trim().length > 0"
|
||||||
|
class="select-auto whitespace-pre-wrap px-1"
|
||||||
|
>
|
||||||
{{ note.text }}
|
{{ note.text }}
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="note" class="px-1 font-light italic">empty</div>
|
<div v-else-if="note" class="px-1 font-light italic">empty</div>
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ const {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<button
|
<button
|
||||||
class="flex h-5 w-5 select-none items-center justify-center rounded-sm border border-black transition"
|
class="flex h-5 w-5 items-center justify-center rounded-sm border border-black transition"
|
||||||
:class="{
|
:class="{
|
||||||
'bg-white text-black': !inverted,
|
'bg-white text-black': !inverted,
|
||||||
'bg-black text-white': inverted,
|
'bg-black text-white': inverted,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue