It looks ugly and isn't useful if the browser window is too slim for all icons. Could you implement some fallback for this? I would suggest, that only the first icons are shown, and at the last visible position there would be a "more" icon which could show the additional, hidden icons.
https://apps.owncloud.com/content/show.php?content=169148#c474065