Thomas--F / BotTracker

BotTracker-Plugin for Piwik
GNU General Public License v3.0
33 stars 14 forks source link

Table column too wide #68

Closed webberian closed 3 years ago

webberian commented 3 years ago

Even though I read you no longer actively maintain this plugin, perhaps you could fix a small bug. In the Visitors > BotTracker view, the "Active" column is far too wide: image

This is in Matomo version 4.2.1.

Also, perhaps another idea would be to make "Bot-name" the first column instead of "Active"?

Thanks so much for your help!

Thomas--F commented 3 years ago

Hmmmm... changing the order of the columns is simple but I didn't find a way to control the width of a column.

Before Piwik version 3, the report-views are defined by twig-templates. There you can do all the fun stuff with your html. But since then, twig is only used in the config-views and not longer in the reports.

So if you still want another order: no problem - where do you want the "active"-column?

Maybe some of the Matomo-developer is reading this: How can I control the width of a column? Is there a metadata-attribute I can add to the column (e.g. like "logoWidth")?

webberian commented 3 years ago

Thanks for your prompt reply, and I'm sorry for the late answer. My first thought was to move Active to the second column, but then I reconsidered and now I think perhaps it could be the last column. Of all the information, it is probably the least important.

I also tried to find more information about what determines cell width in the developer documentation but could not find anything, unfortunately.

Thomas--F commented 3 years ago

I moved the active-icon-column to the end in the dev-4.4-branch. If you want to test it, you just have to replace the file BotTracker/Reports/GetBotTracker.php or change row 58 in this file.

Give me a short feedback an I will commit it to the master and deploy a new version.

webberian commented 3 years ago

Works beautifully, thank you!

Thomas--F commented 3 years ago

OK, new version 2.01 is released