Skip to content

Commit c3586ca

Browse files
committed
Only show scrollbar when necessary
1 parent fd9cabf commit c3586ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/views/bays/_overview.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="overflow-x-scroll">
1+
<div class="overflow-x-auto">
22
<div class="rooms-overview d-grid my-1 pe-2">
33
<% bays.each do |bay| %>
44
<div style="grid-column: <%= "#{bay.position}/#{bay.position+1}" %>;

app/views/islets/_infrastructure.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="room_overview show_room rooms-network-capacity" id="network-capacity">
22
<div class="card">
33
<div class="card-body d-flex">
4-
<div class="tab-content infrastructure bg-body-tertiary overflow-x-scroll w-100">
4+
<div class="tab-content infrastructure bg-body-tertiary overflow-x-auto w-100">
55
<% # TODO: move html here? %>
66
<div class="islet">
77
<% if room.id == 4 || room.id == 3 %>

0 commit comments

Comments
 (0)