Fix alignment in module list

This commit is contained in:
Kijin Sung 2018-08-19 11:11:15 +09:00
parent a32721b6e1
commit 0d26c75bdb
4 changed files with 14 additions and 9 deletions

View file

@ -1,12 +1,17 @@
.fvOff,.fvOn{
display:inline-block;
width:25px;
height:25px;
position:relative;
top:8px;
width:18px;
height:18px;
background-color:transparent;
background-size:25px 25px;
background-size:18px 18px;
overflow:hidden;
text-indent:-1000px;
border:0
border:0;
.nodescription>& {
top: -1px;
}
}
.fvOff{
background-image: data-uri('images/star-empty.svg');

View file

@ -22,7 +22,7 @@
</thead>
<tbody>
<tr loop="$module_list => $key,$val" data-type1="#"|cond="in_array($val->module,$favoriteModuleList)" data-type2="#"|cond="$val->need_install || $val->need_update || $val->need_autoinstall_update">
<td>
<td class="nodescription"|cond="!$val->description">
<button type="button" class="fvOn" onclick="doToggleFavoriteModule(this, '{$val->module}')" cond="in_array($val->module,$favoriteModuleList)">{lang("favorite")} ({lang("on")})</button>
<button type="button" class="fvOff" onclick="doToggleFavoriteModule(this, '{$val->module}')" cond="!in_array($val->module,$favoriteModuleList)">{lang("favorite")} ({lang("off")})</button>
</td>
@ -31,8 +31,8 @@
<a href="{getUrl('','module','admin','act',$val->admin_index_act)}" cond="$val->admin_index_act">{$val->title}</a>
<strong cond="!$val->admin_index_act">{$val->title}</strong>
</p>
<p>{$val->description}</p>
<p cond="Context::isBlacklistedPlugin($val->module)" class="message error" style="margin-top:6px;padding:6px 10px">
<p cond="$val->description">{$val->description}</p>
<p cond="Context::isBlacklistedPlugin($val->module)" class="x_alert x_alert-error">
{$lang->msg_blacklisted_module}<br />
{$lang->get('admin.msg_blacklisted_reason.'.$val->module)}
</p>