Skip to content

Instantly share code, notes, and snippets.

@milksense
Created June 21, 2025 17:03
Show Gist options
  • Save milksense/6b290851627d7b600ecffe06b979a88b to your computer and use it in GitHub Desktop.
Save milksense/6b290851627d7b600ecffe06b979a88b to your computer and use it in GitHub Desktop.
<script lang="ts">
import { dev } from "$app/environment";
</script>
{#if dev}
<div
data-tailwind-indicator=""
class="fixed bottom-1 left-1 z-50 flex h-6 w-6 items-center justify-center rounded-full bg-gray-800 p-3 font-mono text-xs text-white"
>
<div class="block sm:hidden">xs</div>
<div class="hidden sm:block md:hidden">sm</div>
<div class="hidden md:block lg:hidden">md</div>
<div class="hidden lg:block xl:hidden">lg</div>
<div class="hidden xl:block 2xl:hidden">xl</div>
<div class="hidden 2xl:block">2xl</div>
</div>
{/if}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment