Sharing Cart plugin issue - content run out of the screen to right

Sharing Cart plugin issue - content run out of the screen to right

by Jani Hovi -
Number of replies: 4

Hello!

We recently updated our Moodle from 4.0.4. to 4.0.6. After that we got little bug with the Sharing Cart -plugin, Images should show the issue:


--------------------------------------


Any ideas how to easily fix this?

Sharing cart version is 4.0, release 2 and we use Adaptable -theme.

Thanks for help already!

Average of ratings: Useful (1)
In reply to Jani Hovi

Re: Sharing Cart plugin issue - content run out of the screen to right

by Stefan Kohler -

Hello Jani,

we had the same problem with the combination of sharing-cart and Adaptable.
As solution I put the following CSS-Code into the customcss-field of the Theme:

.block_sharing_cart ul.tree.list {display: contents;}
.block_sharing_cart ul.tree.list > li {display: inherit;}
.block_sharing_cart ul.tree.list > li .toggle-wrapper {width: auto;}
.block_sharing_cart ul.tree.list > li span.commands {margin-left: 5px;}
.block_sharing_cart ul.tree.list > li ul.list {display: block;}
.block_sharing_cart ul.tree.list > li ul.list > li {display: block;}
.block_sharing_cart ul.tree.list > li ul.list .instancename {width: auto;}
.block_sharing_cart ul.tree li > div .instancename {width: auto;}
.block_sharing_cart ul.tree.list > li ul.list::before,
.block_sharing_cart ul.tree.list > li ul.list li::before {content: none; outline: none;}

I hope it helps you too!
regards,
Stefan

Average of ratings: Useful (3)
In reply to Stefan Kohler

Re: Sharing Cart plugin issue - content run out of the screen to right

by Don Hinkelman -
Picture of Particularly helpful Moodlers Picture of Plugin developers
Dear Jani and Stefan,
I am so glad you are using and finding the Sharing Cart valuable in your teaching. Your trouble shooting, screenshots and code are just what the programmers helping the Sharing Cart need to see. Could you possibly post your points here on github, either by making a new issue or adding onto a previously reported issue. Thanks! https://github.com/donhinkelman/moodle-block_sharing_cart
Average of ratings: Useful (1)
In reply to Stefan Kohler

Vs: Re: Sharing Cart plugin issue - content run out of the screen to right

by Jani Hovi -
Thank you Stefan very much, this helped! I also post this issue to github for developers, thanks for the tip Don!