Implement responsive design for mobile and tablet devices
- Add hamburger menu for mobile sidebar with slide-out animation - Make header navigation responsive with icon-only buttons on mobile - Adjust document viewer, editor, and quick switcher layouts for smaller screens - Preserve all existing functionality including localStorage folder state persistence - Use Tailwind responsive utilities (sm:, md:, lg:) for progressive enhancement 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<div class="max-w-5xl mx-auto p-8">
|
||||
<div class="max-w-5xl mx-auto p-4 sm:p-6 lg:p-8">
|
||||
<!-- Flash Messages -->
|
||||
@if (session()->has('message'))
|
||||
<div class="mb-4 p-4 bg-green-100 border border-green-400 text-green-700 rounded">
|
||||
@@ -13,16 +13,16 @@
|
||||
@endif
|
||||
|
||||
<!-- Header -->
|
||||
<div class="mb-6 flex items-center justify-between">
|
||||
<h1 class="text-3xl font-bold text-gray-900">
|
||||
<div class="mb-6 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4">
|
||||
<h1 class="text-2xl sm:text-3xl font-bold text-gray-900">
|
||||
{{ $isEditMode ? __('messages.documents.edit_document') : __('messages.documents.new_document') }}
|
||||
</h1>
|
||||
|
||||
<div class="flex space-x-3">
|
||||
<div class="flex flex-wrap gap-2 sm:gap-3">
|
||||
@if($isEditMode && $document)
|
||||
<a
|
||||
href="{{ route('documents.show', $document) }}"
|
||||
class="inline-flex items-center px-4 py-2 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50"
|
||||
class="inline-flex items-center justify-center px-3 sm:px-4 py-2 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 flex-1 sm:flex-none"
|
||||
>
|
||||
{{ __('messages.common.cancel') }}
|
||||
</a>
|
||||
@@ -30,14 +30,14 @@ class="inline-flex items-center px-4 py-2 border border-gray-300 rounded-md text
|
||||
<button
|
||||
wire:click="delete"
|
||||
wire:confirm="{{ __('messages.documents.delete_confirm') }}"
|
||||
class="inline-flex items-center px-4 py-2 border border-red-300 rounded-md text-sm font-medium text-red-700 bg-white hover:bg-red-50"
|
||||
class="inline-flex items-center justify-center px-3 sm:px-4 py-2 border border-red-300 rounded-md text-sm font-medium text-red-700 bg-white hover:bg-red-50 flex-1 sm:flex-none"
|
||||
>
|
||||
{{ __('messages.documents.delete') }}
|
||||
</button>
|
||||
@else
|
||||
<a
|
||||
href="{{ route('documents.show', 'home') }}"
|
||||
class="inline-flex items-center px-4 py-2 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50"
|
||||
class="inline-flex items-center justify-center px-3 sm:px-4 py-2 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 flex-1 sm:flex-none"
|
||||
>
|
||||
{{ __('messages.common.cancel') }}
|
||||
</a>
|
||||
@@ -45,12 +45,13 @@ class="inline-flex items-center px-4 py-2 border border-gray-300 rounded-md text
|
||||
|
||||
<button
|
||||
wire:click="save"
|
||||
class="inline-flex items-center px-4 py-2 bg-indigo-600 border border-transparent rounded-md text-sm font-medium text-white hover:bg-indigo-700"
|
||||
class="inline-flex items-center justify-center px-3 sm:px-4 py-2 bg-indigo-600 border border-transparent rounded-md text-sm font-medium text-white hover:bg-indigo-700 flex-1 sm:flex-none"
|
||||
>
|
||||
<svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<svg class="w-4 h-4 sm:mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-3m-1 4l-3 3m0 0l-3-3m3 3V4"></path>
|
||||
</svg>
|
||||
{{ __('messages.documents.save') }}
|
||||
<span class="hidden sm:inline">{{ __('messages.documents.save') }}</span>
|
||||
<span class="sm:hidden">{{ __('messages.documents.save') }}</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user