Skip to content

Commit

Permalink
Fix dark mode for the new language model settings (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
krschacht authored Jul 9, 2024
1 parent ab2a5ac commit 9747807
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app/views/settings/api_services/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
</p>

<% if @api_services.present? %>
<table id="api-services" class="w-full table-auto border-b border-gray-300">
<table id="api-services" class="w-full table-auto border-b border-gray-300 dark:border-b-0">
<thead>
<tr class="bg-gray-200">
<tr class="bg-gray-200 dark:bg-gray-900">
<th>Name</th>
<th>URL</th>
<th>Driver</th>
Expand All @@ -29,7 +29,7 @@
<tbody>
<% @api_services.each do |api_service| %>
<%= turbo_frame_tag dom_id(api_service) do %>
<tr class="<%= cycle('bg-gray-100', 'bg-white') %> cursor-pointer" data-href="<%= edit_settings_api_service_path(api_service) %>">
<tr class="<%= cycle('bg-gray-100 dark:bg-gray-600', 'bg-white dark:bg-gray-900') %> cursor-pointer" data-href="<%= edit_settings_api_service_path(api_service) %>">
<td class="underline"><%= api_service.name %></td>
<td><%= api_service.url %></td>
<td><%= api_service.driver %></td>
Expand Down
6 changes: 3 additions & 3 deletions app/views/settings/language_models/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
| %>
</p>

<table id="language-models" class="w-full table-auto border-b border-gray-300">
<table id="language-models" class="w-full table-auto border-b border-gray-300 dark:border-b-0">
<thead>
<tr class="bg-gray-200">
<tr class="bg-gray-200 dark:bg-gray-900">
<th>Name</th>
<th>Description</th>
<th>API Service</th>
Expand All @@ -23,7 +23,7 @@
<tbody>
<% @language_models.each do |language_model| %>
<%= turbo_frame_tag dom_id(language_model) do %>
<tr class="<%= cycle('bg-gray-100', 'bg-white') %> cursor-pointer" data-href="<%= edit_settings_language_model_path(language_model) %>">
<tr class="<%= cycle('bg-gray-100 dark:bg-gray-600', 'bg-white dark:bg-gray-900') %> cursor-pointer" data-href="<%= edit_settings_language_model_path(language_model) %>">
<td class="underline"><%= language_model.api_name %></td>
<td><%= language_model.name %></td>
<td><%= n_a_if_blank(language_model.api_service.name) %></td>
Expand Down

0 comments on commit 9747807

Please sign in to comment.