af5af67750
ensure next/prev links are always on oneline, make back button bigger [same as design], align back/next/prev to top when there is more than oneline for h1 [either procedure name, either dossier name]
13 lines
319 B
Ruby
13 lines
319 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Instructeurs::BackButtonComponent < ApplicationComponent
|
|
def initialize(to:)
|
|
@to = to
|
|
end
|
|
|
|
def call
|
|
link_to @to, class: 'back-btn fr-btn fr-btn--secondary fr-btn--sm fr-mr-2w fr-px-1v', title: t('.back') do
|
|
dsfr_icon("fr-icon-arrow-left-line")
|
|
end
|
|
end
|
|
end
|