Skip to content

Commit 64b1b1a

Browse files
committed
added select-none for preventing copy sidebar
1 parent 8a6d125 commit 64b1b1a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

resources/views/_editor.blade.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
{{--WIP--}}
2+
{{--<div class="relative sticky">--}}
3+
{{-- <div class="border-gray-300 m-2 rounded border absolute bottom-0 px-0.5 py-1">3512 Lines</div>--}}
4+
{{--</div>--}}
15
<div class="h-full font-mono text-sm {{ $padding ? 'py-8 pl-4 sm:pl-6 lg:pl-8' : '' }}" id="code">
26
<textarea
37
name="code" class="dark:bg-zinc-900 text-gray-900 dark:text-white w-full h-full resize-none outline-none"
48
placeholder="<?php&#10;&#10;echo 'Share your snippet here!';">{{ optional($paste ?? null)->code }}</textarea>
5-
</div>
9+
</div>

resources/views/components/nav.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class="ml-1 flex items-center justify-center h-10 w-10 rounded-full focus:outlin
3636
<div :class="{'hidden': !isOpen }" class="lg:flex lg:shrink-0 print:hidden">
3737
<div class="flex flex-col w-72 p-4 pl-2">
3838
<!-- Sidebar component, swap this element with another sidebar if you like -->
39-
<div class="flex flex-col h-0 flex-1 bg-gray-50 dark:bg-zinc-800 rounded-2xl">
39+
<div class="flex flex-col h-0 flex-1 bg-gray-50 dark:bg-zinc-800 rounded-2xl select-none">
4040
<div class="flex-1 flex flex-col pt-8 pb-4 px-6 overflow-y-auto">
4141
<x-sidebar>{!! $slot !!}</x-sidebar>
4242
</div>

0 commit comments

Comments
 (0)