Skip to content

Commit da29c87

Browse files
authored
Remove hard coded padding to fix the width of the form (#2263)
also fixes details page overrun display issues fixes #2217 ## wizard after the change <img width="936" height="811" alt="Screenshot 2025-12-03 at 8 55 01 AM" src="https://github.com/user-attachments/assets/2bdfb03f-5de4-4a52-a545-51b40f2e53c8" /> ## Details after change <img width="977" height="1228" alt="Screenshot 2025-12-03 at 8 50 04 AM" src="https://github.com/user-attachments/assets/8598b074-0d97-481d-8f99-9b583170b970" /> ## Details Before the change <img width="915" height="1214" alt="Screenshot 2025-12-03 at 8 50 49 AM" src="https://github.com/user-attachments/assets/7c2689a9-9e02-4684-a98d-e92cf4122d2c" /> <img width="923" height="1217" alt="Screenshot 2025-12-03 at 8 50 58 AM" src="https://github.com/user-attachments/assets/7949f71b-c149-46fc-9259-a20ed48e7092" />
1 parent 5ae692e commit da29c87

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

app/assets/stylesheets/_project.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,16 @@ copy-project-path-label-normal {
240240
.basic-details-fields {
241241
padding-top: 30px;
242242
list-style-type: none;
243-
width: 75rem;
243+
width: 100%;
244244
height: auto;
245245
flex-shrink: 0;
246246
padding-left: 0rem;
247247
}
248248

249+
blockquote {
250+
line-break: anywhere;
251+
}
252+
249253
.detail-table-label {
250254
display: flex;
251255
width: 11.4375rem;

app/assets/stylesheets/requests.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,6 @@
152152
display: flex;
153153
}
154154

155-
.heading-text {
156-
padding-right: 63.5rem;
157-
}
158-
159155
.edit-link {
160156
@include heading-style;
161157
margin-bottom: 0rem;

app/views/projects/details.html.erb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
<li class="detail-subheading">Project Purpose</li>
3838
<p class="detail-value" id="project-purpose-value">
3939
<% if @presenter.project_purpose.blank? %>
40-
<strong class="px-0">&mdash;</strong>
40+
<strong class="px-0">&mdash;</strong>
4141
<% else %>
42-
<%= @presenter.project_purpose %>
42+
<%= @presenter.project_purpose %>
4343
<% end %>
4444
</p>
4545
</div>
@@ -51,18 +51,18 @@
5151
<li class="detail-subheading">Department(s)</li>
5252
<p class="detail-value">
5353
<% if @presenter.departments.empty? %>
54-
<strong class="px-0">&mdash;</strong>
54+
<strong class="px-0">&mdash;</strong>
5555
<% else %>
56-
<div class="departments-group">
57-
<% @presenter.department_codes.each do |dept|%>
58-
<div class="departments-container">
59-
<lux-badge class="lux-badge lux-badge-white departments">
60-
<div class="badge-text"><%= dept.second %></div>
61-
</lux-badge>
62-
<div class="departments-name"><%= dept.first %> </div>
63-
</div>
64-
<%end%>
65-
</div>
56+
<div class="departments-group">
57+
<% @presenter.department_codes.each do |dept|%>
58+
<div class="departments-container">
59+
<lux-badge class="lux-badge lux-badge-white departments">
60+
<div class="badge-text"><%= dept.second %></div>
61+
</lux-badge>
62+
<div class="departments-name"><%= dept.first %> </div>
63+
</div>
64+
<%end%>
65+
</div>
6666
<% end %>
6767
</p>
6868
</div>

0 commit comments

Comments
 (0)