Commit 25d9dcf2 authored by Takuya Noguchi's avatar Takuya Noguchi

Drop one of duplicated classname from Project

limit-container-width classname is duplicated in two of the parent
and child elements.  As the child element is not relevant to any of
CSS rules, we can safely remove the child element to reduce DOM size.
Signed-off-by: default avatarTakuya Noguchi <takninnovationresearch@gmail.com>
parent 586c2abd
......@@ -7,22 +7,21 @@
= render partial: 'flash_messages', locals: { project: @project }
%div{ class: [("limit-container-width" unless fluid_layout)] }
= render "projects/last_push"
= render "projects/last_push"
= render "home_panel"
= render "home_panel"
- if can?(current_user, :download_code, @project) && @project.repository_languages.present?
= repository_languages_bar(@project.repository_languages)
- if can?(current_user, :download_code, @project) && @project.repository_languages.present?
= repository_languages_bar(@project.repository_languages)
= render "archived_notice", project: @project
= render_if_exists "projects/marked_for_deletion_notice", project: @project
= render_if_exists "projects/ancestor_group_marked_for_deletion_notice", project: @project
= render "archived_notice", project: @project
= render_if_exists "projects/marked_for_deletion_notice", project: @project
= render_if_exists "projects/ancestor_group_marked_for_deletion_notice", project: @project
- view_path = @project.default_view
- view_path = @project.default_view
- if show_auto_devops_callout?(@project)
= render 'shared/auto_devops_callout'
- if show_auto_devops_callout?(@project)
= render 'shared/auto_devops_callout'
%div{ class: project_child_container_class(view_path) }
= render view_path, is_project_overview: true
%div{ class: project_child_container_class(view_path) }
= render view_path, is_project_overview: true
---
title: Drop one of duplicated classname from Project
merge_request: 41830
author: Takuya Noguchi
type: performance
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment