style: Update post sidebar input padding and size for consistency

This commit is contained in:
Kerby Martino (aider) committed 2025-05-11 02:53:01 +08:00
1 parent df14724009
commit 57b902940c
1 file changed
+21 -21
+21 -21
View File
@@ -45,20 +45,20 @@
<div class="space-y-4"> <div class="space-y-4">
<div> <div>
<label for="photo-modal" class="block text-xs font-medium text-gray-700 mb-1">Listing Photo</label> <label for="photo-modal" class="block text-xs font-medium text-gray-700 mb-1">Listing Photo</label>
<input type="file" id="photo-modal" name="photo" class="w-full text-xs text-gray-500 file:mr-3 file:py-1.5 file:px-3 file:rounded-md file:border-0 file:text-xs file:font-semibold file:bg-indigo-50 file:text-indigo-700 hover:file:bg-indigo-100 border border-gray-300 rounded-sm cursor-pointer focus:outline-none focus:border-indigo-600" accept="image/*"> <input type="file" id="photo-modal" name="photo" class="w-full text-xs text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-sm file:border-0 file:text-xs file:font-semibold file:bg-indigo-50 file:text-indigo-700 hover:file:bg-indigo-100 border border-gray-300 rounded-sm cursor-pointer focus:outline-none focus:border-indigo-600" accept="image/*">
<p class="text-xs text-gray-500 mt-1">Upload one image (JPG, PNG).</p> <p class="text-xs text-gray-500 mt-1">Upload one image (JPG, PNG).</p>
</div> </div>
<div> <div>
<label for="title-modal" class="block text-xs font-medium text-gray-700 mb-1">Title</label> <label for="title-modal" class="block text-xs font-medium text-gray-700 mb-1">Title</label>
<input type="text" id="title-modal" name="title" placeholder="e.g., Modern Coworking Hub" class="w-full px-3 py-1.5 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm"> <input type="text" id="title-modal" name="title" placeholder="e.g., Modern Coworking Hub" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
</div> </div>
<div> <div>
<label for="description-modal" class="block text-xs font-medium text-gray-700 mb-1">Description</label> <label for="description-modal" class="block text-xs font-medium text-gray-700 mb-1">Description</label>
<textarea id="description-modal" name="description" rows="3" placeholder="Describe your space..." class="w-full px-3 py-1.5 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm"></textarea> <textarea id="description-modal" name="description" rows="3" placeholder="Describe your space..." class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm"></textarea>
</div> </div>
<div> <div>
<label for="space-type-modal" class="block text-xs font-medium text-gray-700 mb-1">Space Type</label> <label for="space-type-modal" class="block text-xs font-medium text-gray-700 mb-1">Space Type</label>
<select id="space-type-modal" name="space-type" class="w-full px-3 py-1.5 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm bg-white"> <select id="space-type-modal" name="space-type" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm bg-white">
<option value="">Select a space type</option> <option value="">Select a space type</option>
<option value="coworking">Coworking</option> <option value="coworking">Coworking</option>
<option value="room">Private Room</option> <option value="room">Private Room</option>
@@ -81,7 +81,7 @@
<div class="space-y-4"> <div class="space-y-4">
<div class="relative"> <div class="relative">
<label for="location-search-modal" class="block text-xs font-medium text-gray-700 mb-1">Select Location</label> <label for="location-search-modal" class="block text-xs font-medium text-gray-700 mb-1">Select Location</label>
<input type="text" id="location-search-modal" name="location-search" placeholder="Search city or area..." class="w-full px-3 py-1.5 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm" autocomplete="off"> <input type="text" id="location-search-modal" name="location-search" placeholder="Search city or area..." class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm" autocomplete="off">
<div id="location-dropdown-modal" class="absolute z-20 mt-1 w-full rounded-md bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5 max-h-48 overflow-y-auto py-1"> <div id="location-dropdown-modal" class="absolute z-20 mt-1 w-full rounded-md bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5 max-h-48 overflow-y-auto py-1">
<a href="#" data-value="Manila, Philippines" class="location-item-modal block px-4 py-2 text-xs text-gray-700 hover:bg-indigo-50 hover:text-indigo-600">Manila, Philippines</a> <a href="#" data-value="Manila, Philippines" class="location-item-modal block px-4 py-2 text-xs text-gray-700 hover:bg-indigo-50 hover:text-indigo-600">Manila, Philippines</a>
<a href="#" data-value="Makati, Philippines" class="location-item-modal block px-4 py-2 text-xs text-gray-700 hover:bg-indigo-50 hover:text-indigo-600">Makati, Philippines</a> <a href="#" data-value="Makati, Philippines" class="location-item-modal block px-4 py-2 text-xs text-gray-700 hover:bg-indigo-50 hover:text-indigo-600">Makati, Philippines</a>
@@ -94,11 +94,11 @@
</div> </div>
<div> <div>
<label for="address-line-1-modal" class="block text-xs font-medium text-gray-700 mb-1">Address Line 1</label> <label for="address-line-1-modal" class="block text-xs font-medium text-gray-700 mb-1">Address Line 1</label>
<input type="text" id="address-line-1-modal" name="address-line-1" placeholder="e.g., 123 Main St" class="w-full px-3 py-1.5 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm"> <input type="text" id="address-line-1-modal" name="address-line-1" placeholder="e.g., 123 Main St" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
</div> </div>
<div> <div>
<label for="address-line-2-modal" class="block text-xs font-medium text-gray-700 mb-1">Address Line 2 (Optional)</label> <label for="address-line-2-modal" class="block text-xs font-medium text-gray-700 mb-1">Address Line 2 (Optional)</label>
<input type="text" id="address-line-2-modal" name="address-line-2" placeholder="e.g., Brgy. Batong Dalig" class="w-full px-3 py-1.5 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm"> <input type="text" id="address-line-2-modal" name="address-line-2" placeholder="e.g., Brgy. Batong Dalig" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
</div> </div>
</div> </div>
<div class="mt-6 flex justify-between"> <div class="mt-6 flex justify-between">
@@ -117,30 +117,30 @@
<div class="space-y-4"> <div class="space-y-4">
<div> <div>
<label for="price-modal" class="block text-xs font-medium text-gray-700 mb-1">Price (PHP per day)</label> <label for="price-modal" class="block text-xs font-medium text-gray-700 mb-1">Price (PHP per day)</label>
<div class="relative mt-1 rounded-md shadow-sm"> <div class="relative mt-1 rounded-sm shadow-sm">
<div class="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2"> <div class="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
<span class="text-gray-500 text-sm">₱</span> <span class="text-gray-500 text-sm">₱</span>
</div> </div>
<input type="number" id="price-modal" name="price" placeholder="e.g., 1200" class="w-full pl-6 pr-3 py-1.5 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm" min="0"> <input type="number" id="price-modal" name="price" placeholder="e.g., 1200" class="w-full pl-7 pr-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm" min="0">
</div> </div>
</div> </div>
<div> <div>
<h3 class="text-sm font-medium text-gray-800 mb-2">Availability Date Range</h3> <h3 class="text-sm font-medium text-gray-700 mb-2">Availability Date Range</h3>
<div class="grid grid-cols-1 md:grid-cols-2 gap-3"> <div class="grid grid-cols-1 md:grid-cols-2 gap-3">
<div> <div>
<label for="availability-start-date-modal" class="block text-xs font-medium text-gray-700 mb-1">Start Date</label> <label for="availability-start-date-modal" class="block text-xs font-medium text-gray-700 mb-1">Start Date</label>
<input type="date" id="availability-start-date-modal" name="availability-start-date" class="w-full px-3 py-1.5 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm"> <input type="date" id="availability-start-date-modal" name="availability-start-date" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
</div> </div>
<div> <div>
<label for="availability-end-date-modal" class="block text-xs font-medium text-gray-700 mb-1">End Date</label> <label for="availability-end-date-modal" class="block text-xs font-medium text-gray-700 mb-1">End Date</label>
<input type="date" id="availability-end-date-modal" name="availability-end-date" class="w-full px-3 py-1.5 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm"> <input type="date" id="availability-end-date-modal" name="availability-end-date" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
</div> </div>
</div> </div>
</div> </div>
<div> <div>
<h3 class="text-sm font-medium text-gray-800 mb-2">Weekly Availability & Hours</h3> <h3 class="text-sm font-medium text-gray-700 mb-2">Weekly Availability & Hours</h3>
{% assign days_list_modal = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday" | split: "," %} {% assign days_list_modal = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday" | split: "," %}
<div class="mb-3"> <div class="mb-3">
<div class="flex flex-wrap border-b border-gray-200"> <div class="flex flex-wrap border-b border-gray-200">
@@ -172,11 +172,11 @@
<div id="time-selection-{{ day_label_modal | downcase }}-modal" class="day-specific-time-inputs-modal mt-3 grid grid-cols-1 sm:grid-cols-2 gap-x-3 gap-y-2 hidden"> <div id="time-selection-{{ day_label_modal | downcase }}-modal" class="day-specific-time-inputs-modal mt-3 grid grid-cols-1 sm:grid-cols-2 gap-x-3 gap-y-2 hidden">
<div> <div>
<label for="start-time-{{ day_label_modal | downcase }}-modal" class="block text-xs font-medium text-gray-700 mb-0.5">Open</label> <label for="start-time-{{ day_label_modal | downcase }}-modal" class="block text-xs font-medium text-gray-700 mb-0.5">Open</label>
<input type="time" id="start-time-{{ day_label_modal | downcase }}-modal" name="start_time_{{ day_label_modal | downcase }}" class="w-full px-2 py-1 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 text-xs bg-white"> <input type="time" id="start-time-{{ day_label_modal | downcase }}-modal" name="start_time_{{ day_label_modal | downcase }}" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm bg-white">
</div> </div>
<div> <div>
<label for="end-time-{{ day_label_modal | downcase }}-modal" class="block text-xs font-medium text-gray-700 mb-0.5">Close</label> <label for="end-time-{{ day_label_modal | downcase }}-modal" class="block text-xs font-medium text-gray-700 mb-0.5">Close</label>
<input type="time" id="end-time-{{ day_label_modal | downcase }}-modal" name="end_time_{{ day_label_modal | downcase }}" class="w-full px-2 py-1 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 text-xs bg-white"> <input type="time" id="end-time-{{ day_label_modal | downcase }}-modal" name="end_time_{{ day_label_modal | downcase }}" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm bg-white">
</div> </div>
</div> </div>
</div> </div>
@@ -200,25 +200,25 @@
<div class="space-y-4"> <div class="space-y-4">
<div> <div>
<label for="space-name-modal" class="block text-xs font-medium text-gray-700 mb-1">Coworking Space Name</label> <label for="space-name-modal" class="block text-xs font-medium text-gray-700 mb-1">Coworking Space Name</label>
<input type="text" id="space-name-modal" name="space_name" placeholder="e.g., The Productive Corner" class="w-full px-3 py-1.5 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm"> <input type="text" id="space-name-modal" name="space_name" placeholder="e.g., The Productive Corner" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
</div> </div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-3"> <div class="grid grid-cols-1 md:grid-cols-2 gap-3">
<div> <div>
<label for="contact-first-name-modal" class="block text-xs font-medium text-gray-700 mb-1">Contact Person - First Name</label> <label for="contact-first-name-modal" class="block text-xs font-medium text-gray-700 mb-1">Contact Person - First Name</label>
<input type="text" id="contact-first-name-modal" name="contact_first_name" placeholder="John" class="w-full px-3 py-1.5 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm"> <input type="text" id="contact-first-name-modal" name="contact_first_name" placeholder="John" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
</div> </div>
<div> <div>
<label for="contact-last-name-modal" class="block text-xs font-medium text-gray-700 mb-1">Contact Person - Last Name</label> <label for="contact-last-name-modal" class="block text-xs font-medium text-gray-700 mb-1">Contact Person - Last Name</label>
<input type="text" id="contact-last-name-modal" name="contact_last_name" placeholder="Doe" class="w-full px-3 py-1.5 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm"> <input type="text" id="contact-last-name-modal" name="contact_last_name" placeholder="Doe" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
</div> </div>
</div> </div>
<div> <div>
<label for="contact-number-modal" class="block text-xs font-medium text-gray-700 mb-1">Contact Number</label> <label for="contact-number-modal" class="block text-xs font-medium text-gray-700 mb-1">Contact Number</label>
<input type="tel" id="contact-number-modal" name="contact_number" placeholder="e.g., 09171234567" class="w-full px-3 py-1.5 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm"> <input type="tel" id="contact-number-modal" name="contact_number" placeholder="e.g., 09171234567" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
</div> </div>
<div> <div>
<label for="contact-email-modal" class="block text-xs font-medium text-gray-700 mb-1">Email Address</label> <label for="contact-email-modal" class="block text-xs font-medium text-gray-700 mb-1">Email Address</label>
<input type="email" id="contact-email-modal" name="contact_email" placeholder="you@example.com" class="w-full px-3 py-1.5 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm"> <input type="email" id="contact-email-modal" name="contact_email" placeholder="you@example.com" class="w-full px-3 py-2 border border-gray-300 rounded-sm focus:outline-none focus:border-indigo-600 text-sm">
</div> </div>
</div> </div>
<div class="mt-6 flex justify-between items-center"> <div class="mt-6 flex justify-between items-center">