This commit is contained in:
End Nightshade 2026-02-10 14:06:08 -07:00
parent 6567d71ce8
commit 2d6afef6d2
No known key found for this signature in database

View file

@ -25,8 +25,8 @@ class Components::Uploads::Row < Components::Base
attr_reader :upload, :compact, :admin
def compact_content
div(style: "flex: 1; min-width: 0;") do
div(style: "font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;", data: { batch_select_toggle: upload.id }) do
div(style: "flex: 1; min-width: 0; cursor: pointer;", data: { batch_select_toggle: upload.id }) do
div(style: "font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;") do
render Primer::Beta::Octicon.new(icon: file_icon_for(upload.content_type), size: :small, mr: 1)
plain upload.filename.to_s
end
@ -47,10 +47,10 @@ class Components::Uploads::Row < Components::Base
end
def full_content
div(style: "flex: 1; min-width: 0;") do
div(style: "flex: 1; min-width: 0; cursor: pointer;", data: { batch_select_toggle: upload.id }) do
div(style: "display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-width: 0;") do
render Primer::Beta::Octicon.new(icon: file_icon_for(upload.content_type), size: :small)
div(style: "flex: 1; min-width: 0; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;", data: { batch_select_toggle: upload.id }) do
div(style: "flex: 1; min-width: 0; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;") do
plain upload.filename.to_s
end
render(Primer::Beta::Label.new(scheme: :secondary)) { plain upload.provenance.titleize }