File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change 30
30
<% end %>
31
31
</ p >
32
32
33
+ < style type ="text/css ">
34
+ td .url-cell {
35
+ /* URL 用のセルにクラスを付けておく想定 */
36
+ white-space : normal; /* 改行を許可 */
37
+ word-wrap : break-word; /* 古めのブラウザ向け */
38
+ overflow-wrap : break-word; /* 新しめのブラウザ向け */
39
+ word-break : break-all; /* 英数字が続く場合の保険 (必要に応じて) */
40
+ }
41
+ </ style >
33
42
< div style ="margin-top: 20px; " align ="center ">
34
43
<% if @event_histories . any? %>
35
- < table border ="1 "
44
+ < table border ="1 " style =" table-layout: auto; " >
36
45
< tr >
37
46
< th style ="padding: 10px; text-align: center; ">
38
- < small > ☯️< br class ='ignore-pc '>
47
+ < small >
48
+ ☯️
49
+ < br class ='ignore-pc '>
39
50
開催日
40
51
</ small >
41
52
</ th >
42
53
< th style ="padding: 10px; text-align: center; ">
43
- < small > 👥
54
+ < small >
55
+ 👥
56
+ < br class ='ignore-pc '>
44
57
参加数
45
58
</ small >
46
59
</ th >
47
60
< th style ="padding: 10px; text-align: center; ">
48
- < small > 📝
61
+ < small >
62
+ 📝
63
+ < br class ='ignore-pc '>
49
64
URL
50
65
</ small >
51
66
</ th >
58
73
< td style ="padding: 1px 10px 1px 10px; text-align: right; ">
59
74
< small > <%= event [ :participants ] %> </ small >
60
75
</ td >
61
- < td style ="padding: 1px 10px 1px 10px; text-align: left; ">
76
+ < td class =" url-cell " style ="padding: 1px 10px 1px 10px; text-align: left; ">
62
77
< small >
63
78
< a href ='<%= event [ :event_url ] %> '>
64
79
< span title ="<%= event [ :event_url ] %> "> <%= event [ :event_url ] . gsub ( 'https://' , '' ) . chomp ( '/' ) %> </ span >
You can’t perform that action at this time.
0 commit comments