mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Fix filemanager tile view
- Button callback was skipping bits due to webcomponent change. - Timing differences mean we really do need to set size in CSS now.
This commit is contained in:
parent
66ee3687b6
commit
d8119802ed
@ -806,19 +806,19 @@ export class filemanagerAPP extends EgwApp
|
||||
{
|
||||
button_widget = (<et2_nextmatch><unknown>nm).getWidgetById('button[change_view]');
|
||||
}
|
||||
if(button_widget && button_widget.type === "buttononly")
|
||||
if(button_widget)
|
||||
{
|
||||
// Switch view based on button icon, since controller can get re-created
|
||||
if(typeof view != 'string')
|
||||
{
|
||||
view = button_widget.image.split('list_')[1].replace('.svg','');
|
||||
view = button_widget.image.split('list_')[1].replace('.svg', '');
|
||||
}
|
||||
|
||||
// Toggle button icon to the other view
|
||||
//todo: nm.controller needs to be changed to nm.getController after merging typescript branch into master
|
||||
button_widget.image = ("list_"+(view == et2_nextmatch_controller.VIEW_ROW ? et2_nextmatch_controller.VIEW_TILE : et2_nextmatch_controller.VIEW_ROW));
|
||||
button_widget.image = ("list_" + (view == et2_nextmatch_controller.VIEW_ROW ? et2_nextmatch_controller.VIEW_TILE : et2_nextmatch_controller.VIEW_ROW));
|
||||
|
||||
button_widget.set_statustext(view == et2_nextmatch_controller.VIEW_ROW ? this.egw.lang("Tile view") : this.egw.lang('List view'));
|
||||
button_widget.statustext = (view == et2_nextmatch_controller.VIEW_ROW ? this.egw.lang("Tile view") : this.egw.lang('List view'));
|
||||
}
|
||||
|
||||
nm.set_view(view);
|
||||
|
@ -41,10 +41,12 @@ input#filemanager-index_path {
|
||||
|
||||
/**
|
||||
* Tile view
|
||||
table.egwGridView_grid .tile .file_tile {
|
||||
height: 150px;
|
||||
}
|
||||
*/
|
||||
table.egwGridView_grid .tile .file_tile {
|
||||
height: 100px;
|
||||
width: 135px;
|
||||
}
|
||||
|
||||
.egwGridView_grid .tile span.iconOverlayContainer {
|
||||
display: block;
|
||||
max-width: 140px;
|
||||
|
@ -62,10 +62,11 @@ input#filemanager-index_path {
|
||||
}
|
||||
/**
|
||||
* Tile view
|
||||
table.egwGridView_grid .tile .file_tile {
|
||||
height: 150px;
|
||||
}
|
||||
*/
|
||||
table.egwGridView_grid .tile .file_tile {
|
||||
height: 100px;
|
||||
width: 135px;
|
||||
}
|
||||
.egwGridView_grid .tile span.iconOverlayContainer {
|
||||
display: block;
|
||||
max-width: 140px;
|
||||
|
@ -50,10 +50,11 @@ input#filemanager-index_path {
|
||||
}
|
||||
/**
|
||||
* Tile view
|
||||
table.egwGridView_grid .tile .file_tile {
|
||||
height: 150px;
|
||||
}
|
||||
*/
|
||||
table.egwGridView_grid .tile .file_tile {
|
||||
height: 100px;
|
||||
width: 135px;
|
||||
}
|
||||
.egwGridView_grid .tile span.iconOverlayContainer {
|
||||
display: block;
|
||||
max-width: 140px;
|
||||
|
Loading…
Reference in New Issue
Block a user