Skip to content

Commit

Permalink
Merge pull request #335 from SaekiTominaga/cell-wrap
Browse files Browse the repository at this point in the history
表セル内の改行制御
  • Loading branch information
SaekiTominaga authored Jul 8, 2023
2 parents d013f34 + 52c84a5 commit 6e49aa3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
8 changes: 4 additions & 4 deletions html/admin/crawler-news.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<tbody>
<%_ for (const newsPage of newsPageOfCategory) { _%>
<tr>
<td>
<td class="u-cell -wrap-no">
<form action="<%= pagePathAbsoluteUrl %>" method="post">
<p><input type="hidden" name="url" value="<%= newsPage.url %>" /></p>
<p>
Expand All @@ -172,9 +172,9 @@
</td>
<td><%= newsPage.priority %></td>
<td><%_ if (newsPage.browser) { _%><%_ } _%></td>
<td><%= newsPage.selector_wrap %></td>
<td><%= newsPage.selector_date %></td>
<td><%= newsPage.selector_content %></td>
<td class="u-cell -wrap-anywhere"><%= newsPage.selector_wrap %></td>
<td class="u-cell -wrap-anywhere"><%= newsPage.selector_date %></td>
<td class="u-cell -wrap-anywhere"><%= newsPage.selector_content %></td>
</tr>
<%_ } _%>
</tbody>
Expand Down
4 changes: 2 additions & 2 deletions html/admin/crawler-resource.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<tbody>
<%_ for (const resourcePage of resourcePageOfCategory) { _%>
<tr>
<td>
<td class="u-cell -wrap-no">
<form action="<%= pagePathAbsoluteUrl %>" method="post" class="c-stack">
<p>
<input type="hidden" name="url" value="<%= resourcePage.url %>" />
Expand All @@ -147,7 +147,7 @@
</td>
<td><%= resourcePage.priority %></td>
<td><%_ if (resourcePage.browser) { _%><%_ } _%></td>
<td><%= resourcePage.selector %></td>
<td class="u-cell -wrap-anywhere"><%= resourcePage.selector %></td>
<td><%= resourcePage.content_length %></td>
<%_ if (resourcePage.last_modified !== null) { _%>
<td><%= resourcePage.last_modified.format('YYYY年M月D日 H時m分') %></td>
Expand Down
10 changes: 10 additions & 0 deletions packages/frontend/style/object/utility/_tabular.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,14 @@ Styleguide 3.3.1
&.-end {
text-align: end;
}

/* 改行禁止 */
&.-wrap-no {
white-space: nowrap;
}

/* 任意の位置で改行 */
&.-wrap-anywhere {
overflow-wrap: anywhere;
}
}

0 comments on commit 6e49aa3

Please sign in to comment.