Skip to content

Commit

Permalink
Display user's other recordings in 2 columns instead of 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed May 15, 2023
1 parent 51fd756 commit 6328ab8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/asciinema/recordings/recordings.ex
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ defmodule Asciinema.Recordings do
|> Repo.preload(:user)
end

def other_public_asciicasts(asciicast, limit \\ 3) do
def other_public_asciicasts(asciicast, limit \\ 4) do
Asciicast
|> filter({asciicast.user_id, :public})
|> where([a], a.id != ^asciicast.id)
Expand Down
2 changes: 1 addition & 1 deletion lib/asciinema_web/templates/recording/show.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
<div class="asciicast-list">
<div class="row">
<%= for asciicast <- asciicasts do %>
<div class="col-md-4">
<div class="col-md-6">
<%= render AsciinemaWeb.RecordingView, "_card.html", conn: @conn, asciicast: asciicast %>
</div>
<% end %>
Expand Down

0 comments on commit 6328ab8

Please sign in to comment.