diff --git a/.rubocop.yml b/.rubocop.yml index 35f3e787d68..19a182cdd5b 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -7,6 +7,7 @@ require: - rubocop-rails - rubocop-performance - ./lib/linters/localized_validation_message_linter.rb + - ./lib/linters/image_size_linter.rb - ./lib/linters/mail_later_linter.rb - ./lib/linters/redirect_back_linter.rb - ./lib/linters/url_options_linter.rb @@ -58,6 +59,16 @@ IdentityIdp/ErrorsAddLinter: Exclude: - 'spec/**/*.rb' +IdentityIdp/ImageSizeLinter: + Enabled: true + Exclude: + - app/components/barcode_component.html.erb + - app/views/partials/multi_factor_authentication/_mfa_selection.html.erb + - app/views/shared/_nav_branded.html.erb + - app/views/sign_up/completions/show.html.erb + - app/views/users/two_factor_authentication_setup/index.html.erb + - app/views/users/webauthn_setup/new.html.erb + IdentityIdp/RedirectBackLinter: Enabled: true diff --git a/app/views/accounts/_pii.html.erb b/app/views/accounts/_pii.html.erb index 6312ed5e554..6bf05dae6cd 100644 --- a/app/views/accounts/_pii.html.erb +++ b/app/views/accounts/_pii.html.erb @@ -16,7 +16,7 @@
<%= t('doc_auth.instructions.switch_back') %>
- <%= image_tag(asset_url('idv/switch.png'), width: 193, alt: t('doc_auth.instructions.switch_back_image')) %> + <%= image_tag(asset_url('idv/switch.png'), width: 193, height: 109, alt: t('doc_auth.instructions.switch_back_image')) %> <% end %> diff --git a/app/views/idv/capture_doc/capture_complete.html.erb b/app/views/idv/capture_doc/capture_complete.html.erb index 4199e3d5dcc..2836472bb6d 100644 --- a/app/views/idv/capture_doc/capture_complete.html.erb +++ b/app/views/idv/capture_doc/capture_complete.html.erb @@ -6,4 +6,4 @@ <%= render PageHeadingComponent.new.with_content(t('doc_auth.instructions.switch_back')) %> -<%= image_tag(asset_url('idv/switch.png'), width: 193, alt: t('doc_auth.instructions.switch_back_image')) %> +<%= image_tag(asset_url('idv/switch.png'), width: 193, height: 109, alt: t('doc_auth.instructions.switch_back_image')) %> diff --git a/app/views/idv/doc_auth/email_sent.html.erb b/app/views/idv/doc_auth/email_sent.html.erb index 33fd4cf5e51..428185b129b 100644 --- a/app/views/idv/doc_auth/email_sent.html.erb +++ b/app/views/idv/doc_auth/email_sent.html.erb @@ -1,6 +1,6 @@ <% title t('titles.doc_auth.verify') %> -<%= image_tag(asset_url('state-id-confirm@3x.png'), width: 210, class: 'margin-bottom-2') %> +<%= image_tag(asset_url('state-id-confirm@3x.png'), width: 210, height: 127, class: 'margin-bottom-2') %> <%= render PageHeadingComponent.new do %> <%= t('doc_auth.instructions.email_sent', email: current_user.confirmed_email_addresses.first.email) %> diff --git a/app/views/idv/doc_auth/link_sent.html.erb b/app/views/idv/doc_auth/link_sent.html.erb index bb952544359..d37c9185006 100644 --- a/app/views/idv/doc_auth/link_sent.html.erb +++ b/app/views/idv/doc_auth/link_sent.html.erb @@ -15,7 +15,7 @@<%= t('doc_auth.info.link_sent') %>
diff --git a/app/views/idv/doc_auth/upload.html.erb b/app/views/idv/doc_auth/upload.html.erb index 87da877c1a5..016cf91f931 100644 --- a/app/views/idv/doc_auth/upload.html.erb +++ b/app/views/idv/doc_auth/upload.html.erb @@ -32,6 +32,7 @@ asset_url('idv/phone.png'), alt: t('image_description.camera_mobile_phone'), width: 80, + height: 119, ) %><%= t('inherited_proofing.cancel.instructions.switch_back') %>
- <%= image_tag(asset_url('inherited_proofing/switch.png'), width: 193, alt: t('inherited_proofing.cancel.instructions.switch_back_image')) %> + <%= image_tag(asset_url('inherited_proofing/switch.png'), width: 193, height: 109, alt: t('inherited_proofing.cancel.instructions.switch_back_image')) %> <% end %> diff --git a/app/views/layouts/account_side_nav.html.erb b/app/views/layouts/account_side_nav.html.erb index 6ea8fc64d54..c010436c021 100644 --- a/app/views/layouts/account_side_nav.html.erb +++ b/app/views/layouts/account_side_nav.html.erb @@ -11,6 +11,8 @@