Skip to content

Commit

Permalink
Only show scrollbar when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
nanego committed Dec 19, 2024
1 parent fd9cabf commit c3586ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/bays/_overview.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="overflow-x-scroll">
<div class="overflow-x-auto">
<div class="rooms-overview d-grid my-1 pe-2">
<% bays.each do |bay| %>
<div style="grid-column: <%= "#{bay.position}/#{bay.position+1}" %>;
Expand Down
2 changes: 1 addition & 1 deletion app/views/islets/_infrastructure.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="room_overview show_room rooms-network-capacity" id="network-capacity">
<div class="card">
<div class="card-body d-flex">
<div class="tab-content infrastructure bg-body-tertiary overflow-x-scroll w-100">
<div class="tab-content infrastructure bg-body-tertiary overflow-x-auto w-100">
<% # TODO: move html here? %>
<div class="islet">
<% if room.id == 4 || room.id == 3 %>
Expand Down

0 comments on commit c3586ca

Please sign in to comment.