This question already has an answer here:
Long story short, I worked as a junior web developer for slightly more than half a year. My first job ever, and I already had issues with procrastination, sort attention span, and the likes, you name it.
My boss warned me after a rather long time and from that point, I put more effort to my fulfill my duties. Still, my boss claimed it's unhealthy for the office culture that he constantly finds me doing non-work related activities. [there are no directly enforced restrictions in the matter at said company, e.g. direct logging, banned addresses, etc]
So I was fired.
The problem is that when looking for a job, virtually every employer is interested in the reasons of leaving the previous job, so I have to explain.
Needless to say, it's a red light for everyone, yet I need to be employed, obviously.
How can I communicate this kind of issue for someone to not gamble their trust in me?