limit height of mime icon in list-view to 16px, with exception of thumbnails using their configured height

This commit is contained in:
Ralf Becker 2015-01-12 12:24:23 +00:00
parent 157230ba57
commit 4476126986
3 changed files with 17 additions and 2 deletions

View File

@ -64,6 +64,14 @@ div.filemanager_navigation > label > input {
max-height: none;
}
#filemanager-index_nm img.vfsMimeIcon {
max-height: 16px;
height: auto;
}
#filemanager-index_nm img.vfsMimeIcon[src*="/etemplate/thumbnail.php"] {
max-height: none;
}
/**
* Tile view
table.egwGridView_grid .tile .file_tile {

View File

@ -94,6 +94,13 @@ div.filemanager_navigation > label > input {
text-overflow: ellipsis;
max-height: none;
}
#filemanager-index_nm img.vfsMimeIcon {
max-height: 16px;
height: auto;
}
#filemanager-index_nm img.vfsMimeIcon[src*="/etemplate/thumbnail.php"] {
max-height: none;
}
/**
* Tile view
table.egwGridView_grid .tile .file_tile {

View File

@ -1115,10 +1115,10 @@ class egw_vfs extends vfs_stream_wrapper
*
* @param string $mime_type
* @param boolean $et_image =true return $app/$icon string for etemplate (default) or html img tag if false
* @param int $size =16
* @param int $size =128
* @return string
*/
static function mime_icon($mime_type, $et_image=true, $size=16)
static function mime_icon($mime_type, $et_image=true, $size=128)
{
if ($mime_type == egw_vfs::DIR_MIME_TYPE)
{