Skip to content

Commit 6692639

Browse files
committed
Increase space for comments
1 parent 3cd544e commit 6692639

File tree

5 files changed

+58
-16
lines changed

5 files changed

+58
-16
lines changed

app/components/timer_session_entry_component.html.erb

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
<tr class="<%= row_classes %>">
2-
<td class="td-px-0 w-40">
3-
<% issue_link_list(timer_session_entry.issues).each do |issue_link| %>
4-
<%= issue_link %>
5-
<br>
6-
<% end %>
1+
<tr class="timer-session-table-row <%= row_classes %>">
2+
<td class="timer-session-subject" colspan="2">
3+
<div class="issue-links">
4+
<% issue_link_list(timer_session_entry.issues).each do |issue_link| %>
5+
<%= issue_link %><br>
6+
<% end %>
7+
</div>
8+
<p class="comments"><%= timer_session_entry.comments %></p>
79
</td>
8-
<td class="w-20"><%= timer_session_entry.comments %></td>
9-
<td><%= timer_session_entry.formated_session_time %></td>
10-
<td><%= format_worked_hours(timer_session_entry.recorded_hours) %></td>
11-
<td class="timer-session-table-actions">
10+
<td class="whitespace-nowrap"><%= timer_session_entry.formated_session_time %></td>
11+
<td class="whitespace-nowrap"><%= format_worked_hours(timer_session_entry.recorded_hours) %></td>
12+
<td class="whitespace-nowrap timer-session-table-actions">
1213
<% if timer_session_entry? %>
1314
<% if can_continue_entry? %>
1415
<%= link_to timer_sessions_continue_path(timer_session_entry),

app/views/timer_sessions/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="redmine-tracky">
2-
<div class="w-75 mx-auto">
2+
<div class="w-100">
33
<h1 class="text-center"><%= t('timer_sessions.index.title') %></h1>
44
<div class="w-100 mt-3" data-timer-session-container>
55
<%= render 'timer_container', timer_session: @current_timer_session %>

assets.src/src/styles/time_sessions_table.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,27 @@
11
@import 'variables';
22

33
.redmine-tracky {
4+
.timer-session-table-row {
5+
display: flex;
6+
}
7+
48
.timer-sessions-table td {
59
text-align: left !important;
610
}
711

12+
.timer-session-subject {
13+
display: flex;
14+
flex-grow: 1;
15+
16+
.issue-links {
17+
width: 40%;
18+
}
19+
20+
.comments {
21+
width: 60%;
22+
}
23+
}
24+
825
.timer-session-table-actions {
926
text-align: right !important;
1027
}

assets.src/src/styles/utils.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
color: #d74427;
2929
}
3030

31+
.whitespace-nowrap {
32+
white-space: nowrap;
33+
width: fit-content;
34+
}
35+
3136
.w-20 {
3237
width: 20% !important;
3338
}
@@ -57,7 +62,7 @@
5762
}
5863

5964
@media only screen and (max-width: 480px) {
60-
[class*="w-"] {
65+
[class*='w-'] {
6166
width: 100% !important;
6267
}
6368
}
@@ -82,6 +87,7 @@
8287

8388
.timer-sessions-table {
8489
border-collapse: collapse;
90+
table-layout: auto;
8591
}
8692

8793
.timer-sessions-table > td {
@@ -140,7 +146,7 @@
140146

141147
@media only screen and (max-width: 768px) {
142148
/* For mobile phones: */
143-
[class*="col-"] {
149+
[class*='col-'] {
144150
width: 100%;
145151
}
146152
}

assets/javascripts/redmine-tracky.js

Lines changed: 21 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)