Fix staff debug module field table width.
The auto-adjusting table layout would get illegible for certain types of problems that contain a large amount of data because the first column could get very narrow (down to the width of a single character). This commit fixes the width of the first column to 25%.
This commit is contained in:
@@ -87,16 +87,17 @@ ${block_content}
|
|||||||
<div class="staff_info" style="display:block">
|
<div class="staff_info" style="display:block">
|
||||||
is_released = ${is_released}
|
is_released = ${is_released}
|
||||||
location = ${location.to_deprecated_string() | h}
|
location = ${location.to_deprecated_string() | h}
|
||||||
|
|
||||||
<table summary="${_('Module Fields')}">
|
<table summary="${_('Module Fields')}">
|
||||||
<tr><th>${_('Module Fields')}</th></tr>
|
<tr><th>${_('Module Fields')}</th></tr>
|
||||||
%for name, field in fields:
|
%for name, field in fields:
|
||||||
<tr><td>${name}</td><td><pre style="display:inline-block; margin: 0;">${field | h}</pre></td></tr>
|
<tr><td style="width:25%">${name}</td><td><pre style="display:inline-block; margin: 0;">${field | h}</pre></td></tr>
|
||||||
%endfor
|
%endfor
|
||||||
</table>
|
</table>
|
||||||
<table>
|
<table>
|
||||||
<tr><th>${_('XML attributes')}</th></tr>
|
<tr><th>${_('XML attributes')}</th></tr>
|
||||||
%for name, field in xml_attributes.items():
|
%for name, field in xml_attributes.items():
|
||||||
<tr><td>${name}</td><td><pre style="display:inline-block; margin: 0;">${field | h}</pre></td></tr>
|
<tr><td style="width:25%">${name}</td><td><pre style="display:inline-block; margin: 0;">${field | h}</pre></td></tr>
|
||||||
%endfor
|
%endfor
|
||||||
</table>
|
</table>
|
||||||
category = ${category | h}
|
category = ${category | h}
|
||||||
|
|||||||
Reference in New Issue
Block a user