mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
Remove Full-width layout option from preferences
- Remove fluid_preference toggle from preferences page - Remove fluid_preference from permitted parameters in controller - This setting was only used in the old Materialize layout - Standardizing on one consistent layout with the new TailwindCSS redesign - Include user's updates to content_page_shares comments display 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
d013e71a2e
commit
79ef586d04
@ -58,7 +58,7 @@ class RegistrationsController < Devise::RegistrationsController
|
||||
|
||||
def account_update_params
|
||||
params.require(:user).permit(
|
||||
:name, :email, :username, :password, :password_confirmation, :email_updates, :fluid_preference,
|
||||
:name, :email, :username, :password, :password_confirmation, :email_updates,
|
||||
:bio, :favorite_genre, :favorite_author, :interests, :age, :location, :gender, :forums_badge_text,
|
||||
:keyboard_shortcuts_preference, :avatar, :favorite_book, :website, :inspirations, :other_names,
|
||||
:favorite_quote, :occupation, :favorite_page_type, :dark_mode_enabled, :notification_updates,
|
||||
|
||||
@ -187,26 +187,6 @@
|
||||
<% end %>
|
||||
</span>
|
||||
</button>
|
||||
|
||||
<!-- Like (placeholder) -->
|
||||
<button class="flex items-center space-x-2 text-gray-500 hover:text-red-600 transition-colors group/btn">
|
||||
<div class="p-1.5 rounded-lg group-hover/btn:bg-red-50 transition-colors">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"/>
|
||||
</svg>
|
||||
</div>
|
||||
<span class="text-sm font-medium">Like</span>
|
||||
</button>
|
||||
|
||||
<!-- Share (placeholder) -->
|
||||
<button class="flex items-center space-x-2 text-gray-500 hover:text-blue-600 transition-colors group/btn">
|
||||
<div class="p-1.5 rounded-lg group-hover/btn:bg-blue-50 transition-colors">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.367 2.684 3 3 0 00-5.367-2.684z"/>
|
||||
</svg>
|
||||
</div>
|
||||
<span class="text-sm font-medium">Share</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -7,17 +7,6 @@
|
||||
</div>
|
||||
|
||||
<div class="px-4 py-5 sm:p-6 space-y-6">
|
||||
<div class="flex items-start">
|
||||
<div class="flex-grow pr-4">
|
||||
<label for="user_fluid_preference" class="block text-sm font-medium text-gray-700">Full-width layout</label>
|
||||
<p class="text-sm text-gray-500">Great for small monitors/laptops, phones, and tablets.</p>
|
||||
</div>
|
||||
<div class="toggle-switch relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-notebook-blue bg-gray-200 mt-1" role="switch" aria-checked="false" tabindex="0">
|
||||
<%= f.check_box :fluid_preference, class: "sr-only" %>
|
||||
<span aria-hidden="true" class="toggle-dot pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 translate-x-0"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex items-start">
|
||||
<div class="flex-grow pr-4">
|
||||
<label for="user_dark_mode_enabled" class="block text-sm font-medium text-gray-700">Dark mode</label>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user