Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/components/op_primer/border_box_table_component.sass
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@

@media screen and (max-width: $breakpoint-md)
.op-border-box-grid
grid-template-columns: 1fr auto
grid-template-columns: minmax(0, 1fr) auto
grid-auto-flow: row

&--has-headers
Expand Down
21 changes: 21 additions & 0 deletions spec/features/admin/statuses_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,27 @@
end
end

context "with a long status name on a phone-sized screen" do
shared_let(:long_status) do
create(:status, name: "Awaiting review by the architecture and design review board", position: 4)
end

include_context "with mobile screen size", 400, 900

it "keeps the row actions inside the viewport" do
statuses_page.visit!

statuses_page.within_status(long_status) do
button = find(:button, accessible_name: "Status actions", obscured: false) do |candidate|
candidate.native.node.in_viewport?
end

button.click
expect(page).to have_button("Move to top")
end
end
end

it "reorders statuses by dragging them after a morph", :selenium do
visit statuses_page.path

Expand Down
Loading