Modern Document Library Webpart full width

Brass Contributor

Hi All,

 

I got a question from a user stating that they wonder why the Document Library webpart does not span the full width of the page? Any settings I'm missing or is this by design and cannot be changed?

 

I would be able to expand the webpart width over the marked space? If its possible?

2018-11-12_10h56_32.png

 

15 Replies
You are pretty much stuck with it. I wish they would allow us more options on webpart zone sizing, but they mostly do this to help with responsive design.

Hi Chris,

 

thanks for the information, then I know that there is a limitation. 

 

regards

Martin

@Martin Sagerstrand I too have a client asking the very same question.

Business justification:

With Document management libraries usually a couple of metadata columns need to be displayed and then full width makes a lot of sense.

The possibility for full witdh on Modern SharePoint is now only avialable (afaik) for Image and Hero Webpart.

The only thing required is the property fullBleed in the webpart's manifest. 

How to add SPFx webpart to full-width column (velingeorgiev.com)

 

Can Microsoft SPO team react to this request, please?

@Carry4IT Megens interesting :)

 

I have seen many cases where a full with doc library would be a nice feature and users always asking why it cant be full with.. 

 

regards

Martin

@Martin Sagerstrand 

Hi,

This is actually possible to configure with coding (adding a custom SPFx web part) that changes the limitations. However, this would require having maintenance, someone stand-by to be able to help out when Microsoft does changes to the core structure. So that the design changes can adapt to SharePoint responsive design.

The code itself only requires 3 lines of code at maximum. The real challenge is to have someone to understand what it does and be able to maintain it when required.

Yours sincerely,
Aref Halmstrand

@Martin Sagerstrand 


I have uploaded an image here as example when using full width of the page.

ArefHalmstrand_0-1611829800006.png


Yours sincerely,
Aref Halmstrand

@ArefHalmstrand thank you for your follow up. Exactly that: it requires a custom webpart.
Why does Microsoft not provide the option ootb?
I cannot understand.

Nice,

 

yes that is a shame, this should def. be an OOTB feature

 

//Martin

@Carry4IT Megens 

 

Done.. :)

 

regards

Martin

Bummer. Now Micrsooft turns away from Uservoice I hope they still make the very small change required in their webparts to include FullBleed. Can someone from SharePoint team react to this please?

@ArefHalmstrand 

 

Can you please guide me  with sample  code in this regard ,how to  achieve this using webpart  spfx ?.  I am beginner on spfx development.

While this got my attention and still no solution, I posted the same question on new feedback portal since uservoice got abandonned, your votes here please: https://feedbackportal.microsoft.com/feedback/idea/1312eb2c-f94d-ec11-a819-0022484f395d

@Martin Sagerstrand has this issue never been resolved?  This is a lot of unused whitespace, and I wanted to expand the width Document List, not one of the columns' widths within...

 

FLebby_0-1708451354662.png