Skip to content

Commit cef3dac

Browse files
committed
Hide horizontal scrollbar on admin tables when unnecessary
1 parent 274ae51 commit cef3dac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/src/templates/AdminInvitesPage.mlx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ let[@react.component] make
141141
</div>
142142
| None ->
143143
null )
144-
<div className="overflow-x-auto">
144+
<div className=(if List.length invites > 0 then "overflow-x-auto" else "overflow-x-hidden")>
145145
<table
146146
className="w-full grid border-collapse text-sm"
147147
style=(ReactDOM.Style.make

frontend/src/templates/AdminUsersPage.mlx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ let[@react.component] make
183183
</div>
184184
| None ->
185185
null )
186-
<div className="overflow-x-auto">
186+
<div className=(if List.length actors > 0 then "overflow-x-auto" else "overflow-x-hidden")>
187187
<table
188188
className="w-full min-w-xl grid border-collapse text-sm"
189189
style=(ReactDOM.Style.make

0 commit comments

Comments
 (0)