Skip to content

Commit

Permalink
move mb-4 from wrapper to turbo frame
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisHuynh333 committed Dec 19, 2024
1 parent e84b119 commit f039c40
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 51 deletions.
2 changes: 1 addition & 1 deletion app/views/groups/bots/_access_token_section.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
data-turbo-permanent
class="
p-4 bg-white border border-slate-200 rounded-lg shadow-sm 2xl:col-span-2
dark:border-slate-700 sm:p-6 dark:bg-slate-800
dark:border-slate-700 sm:p-6 dark:bg-slate-800 mb-4
"
>
<h2 class="text-xl font-semibold leading-tight text-slate-900 dark:text-white">
Expand Down
46 changes: 22 additions & 24 deletions app/views/groups/bots/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,33 @@
},
class:
"
inline-flex
items-center
justify-center
text-sm
border
rounded-md
cursor-pointer
sm:w-auto focus:z-10
focus:outline-none
text-white
bg-primary-700
hover:bg-primary-800
focus:ring-0
rounded-md
px-5
py-3
dark:text-white
dark:bg-primary-600
dark:hover:bg-primary-700
dark:border-primary-900
dark:hover:bg-primary-700" %>
inline-flex
items-center
justify-center
text-sm
border
rounded-md
cursor-pointer
sm:w-auto focus:z-10
focus:outline-none
text-white
bg-primary-700
hover:bg-primary-800
focus:ring-0
rounded-md
px-5
py-3
dark:text-white
dark:bg-primary-600
dark:hover:bg-primary-700
dark:border-primary-900
dark:hover:bg-primary-700" %>
<% end %>
<% end %>
<% end %>

<div class="flex flex-col">
<%= turbo_frame_tag "bot_modal" %>
<div class="mb-4">
<%= turbo_frame_tag "access-token-section" %>
</div>
<%= turbo_frame_tag "access-token-section" %>
<%= render partial: "table" %>
</div>
2 changes: 1 addition & 1 deletion app/views/projects/bots/_access_token_section.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
data-turbo-permanent
class="
p-4 bg-white border border-slate-200 rounded-lg shadow-sm 2xl:col-span-2
dark:border-slate-700 sm:p-6 dark:bg-slate-800
dark:border-slate-700 sm:p-6 dark:bg-slate-800 mb-4
"
>
<h2 class="text-xl font-semibold leading-tight text-slate-900 dark:text-white">
Expand Down
48 changes: 23 additions & 25 deletions app/views/projects/bots/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,34 @@
},
class:
"
inline-flex
items-center
justify-center
text-sm
border
rounded-md
cursor-pointer
sm:w-auto focus:z-10
focus:outline-none
text-white
bg-primary-700
hover:bg-primary-800
focus:ring-0
rounded-md
px-5
py-3
dark:text-white
dark:bg-primary-600
dark:hover:bg-primary-700
dark:border-primary-900
dark:hover:bg-primary-700
" %>
inline-flex
items-center
justify-center
text-sm
border
rounded-md
cursor-pointer
sm:w-auto focus:z-10
focus:outline-none
text-white
bg-primary-700
hover:bg-primary-800
focus:ring-0
rounded-md
px-5
py-3
dark:text-white
dark:bg-primary-600
dark:hover:bg-primary-700
dark:border-primary-900
dark:hover:bg-primary-700
" %>
<% end %>
<% end %>
<% end %>

<div class="flex flex-col">
<%= turbo_frame_tag "bot_modal" %>
<div class="mb-4">
<%= turbo_frame_tag "access-token-section" %>
</div>
<%= turbo_frame_tag "access-token-section" %>
<%= render partial: "table" %>
</div>

0 comments on commit f039c40

Please sign in to comment.