SOLVED

Enable full width column for hosting SP List on a Site Page of modern site on SPO

%3CLINGO-SUB%20id%3D%22lingo-sub-1716399%22%20slang%3D%22en-US%22%3EEnable%20full%20width%20column%20for%20hosting%20SP%20List%20on%20a%20Site%20Page%20of%20modern%20site%20on%20SPO%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1716399%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Community%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20somebody%20please%20suggest%20as%20to%20how%20can%20i%20have%20a%20full-width%20column%20on%20a%20site%20page%20to%20allow%20for%20the%20full%20screen%20view%20for%20my%20SharePoint%20list%20on%20the%20page.%3C%2FP%3E%3CP%3EIf%20you%20see%20below-%20my%20sample%20list%20%22BRD%22%20occupies%20the%20yellow%20highlighted%20portion%20only%20which%20is%20around%2070%25%20of%20the%20page%20width.%20Why%20can't%20i%20have%20a%20full%20width%20100%25%20screen%20dedicated%20to%20my%20SP%20list%20because%20SharePoint%20Online%20currently%20allows%20only%204%20web%20parts%20highlighted%20in%20green%20below%20which%20doesn't%20help%20me%20for%20my%20list%20requirement.%20Please%20guide-%20thanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22GulianiG_0-1601137269536.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F222388i51F912276747AA47%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22GulianiG_0-1601137269536.png%22%20alt%3D%22GulianiG_0-1601137269536.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EJuan%20Carlos%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1716399%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1716683%22%20slang%3D%22en-US%22%3ERe%3A%20Enable%20full%20width%20column%20for%20hosting%20SP%20List%20on%20a%20Site%20Page%20of%20modern%20site%20on%20SPO%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1716683%22%20slang%3D%22en-US%22%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EThere%20are%20two%20options%20to%20solve%20this%3A%3CBR%20%2F%3E%3CBR%20%2F%3E1.%20Add%20SPFx%20web%20part%20for%20embeded%20code%20and%20manipulate%20the%20DOM%20to%20remove%20the%20max-width%20style%20for%20the%20specific%20area.%3CBR%20%2F%3E%3CBR%20%2F%3E2.%20Create%20a%20SPFx%20web%20part%20to%20display%20the%20list%20and%20in%20the%20manifest%2C%20allow%20it%20to%20be%20shown%20as%20full%20width%20web%20part.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1716722%22%20slang%3D%22en-US%22%3ERe%3A%20Enable%20full%20width%20column%20for%20hosting%20SP%20List%20on%20a%20Site%20Page%20of%20modern%20site%20on%20SPO%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1716722%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F284426%22%20target%3D%22_blank%22%3E%40ArefHalmstrand%3C%2FA%3E%26nbsp%3BThanks%20for%20suggesting%20the%20probable%20solution.%20Would%20you%20know%20a%20video%20on%20YouTube%20or%20a%20webpage%20showing%20detailed%20steps%20on%20how%20to%20do%20this%3F%3C%2FP%3E%3CP%3EI%20am%20a%20SharePoint%20Administrator%20not%20a%20developer-%20so%20can%20try%20doing%20this%20if%20there%20is%20help%20with%20some%20reference%20material.%20Please%20suggest!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1716724%22%20slang%3D%22en-US%22%3ERe%3A%20Enable%20full%20width%20column%20for%20hosting%20SP%20List%20on%20a%20Site%20Page%20of%20modern%20site%20on%20SPO%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1716724%22%20slang%3D%22en-US%22%3EI%20will%20try%20to%20find%20something%20that%20is%20safe%20and%20up%20to%20date.%20Could%20you%20concider%20voting%20the%20respons%20as%20best%20answer%3F%20%3A)%3C%2Fimg%3E%3CBR%20%2F%3E%3CBR%20%2F%3EI%20am%20working%20on%20creating%20video%20content%20for%20community%20issues.%20If%20I%20dont%20find%20anything%20good%20then%20I%20can%20create%20a%20video%20for%20this%20scenario.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1716780%22%20slang%3D%22en-US%22%3ERe%3A%20Enable%20full%20width%20column%20for%20hosting%20SP%20List%20on%20a%20Site%20Page%20of%20modern%20site%20on%20SPO%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1716780%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fpnp%2Fsp-dev-fx-webparts%2Ftree%2Fmaster%2Fsamples%2Freact-script-editor%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fpnp%2Fsp-dev-fx-webparts%2Ftree%2Fmaster%2Fsamples%2Freact-script-editor%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EHere%20is%20the%20first%20step.%20However%2C%20a%20developer%20needs%20to%20help%20out%20with%20deploying%20the%20application%20and%20adding%20the%20code.%3CBR%20%2F%3E%3CBR%20%2F%3EQuestion%3A%20Do%20you%20want%20this%20to%20apply%20on%20one%20site%2C%20or%20all%20sites%20%3F%20The%20current%20solution%20that%20I%20have%20suggested%20is%20based%20on%20deploying%20the%20code%20on%20a%20specific%20page.%20It%20is%20not%20ideal%20to%20add%20the%20code%20over%20and%20over%20again.%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20it%20needs%20to%20be%20deployed%20everywhere%2C%20an%20SPFx%20extension%20is%20a%20better%20way%20to%20solve%20this.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1716787%22%20slang%3D%22en-US%22%3ERe%3A%20Enable%20full%20width%20column%20for%20hosting%20SP%20List%20on%20a%20Site%20Page%20of%20modern%20site%20on%20SPO%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1716787%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F284426%22%20target%3D%22_blank%22%3E%40ArefHalmstrand%3C%2FA%3E%26nbsp%3BThanks%20again.%3C%2FP%3E%3CP%3EI%20just%20need%20it%20on%201%20site%20page-%20not%20on%20the%20whole%20site.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

Hi Community,

 

Can somebody please suggest as to how can i have a full-width column on a site page to allow for the full screen view for my SharePoint list on the page.

If you see below- my sample list "BRD" occupies the yellow highlighted portion only which is around 70% of the page width. Why can't i have a full width 100% screen dedicated to my SP list because SharePoint Online currently allows only 4 web parts highlighted in green below which doesn't help me for my list requirement. Please guide- thanks

 

GulianiG_0-1601137269536.png

Juan Carlos

9 Replies
Highlighted
Best Response confirmed by GulianiG (Contributor)
Solution
Hello,

There are two options to solve this:

1. Add SPFx web part for embeded code and manipulate the DOM to remove the max-width style for the specific area.

2. Create a SPFx web part to display the list and in the manifest, allow it to be shown as full width web part.
Highlighted

@ArefHalmstrand Thanks for suggesting the probable solution. Would you know a video on YouTube or a webpage showing detailed steps on how to do this?

I am a SharePoint Administrator not a developer- so can try doing this if there is help with some reference material. Please suggest!

 

Highlighted
I will try to find something that is safe and up to date. Could you concider voting the respons as best answer? :)

I am working on creating video content for community issues. If I dont find anything good then I can create a video for this scenario.
Highlighted
https://github.com/pnp/sp-dev-fx-webparts/tree/master/samples/react-script-editor

Here is the first step. However, a developer needs to help out with deploying the application and adding the code.

Question: Do you want this to apply on one site, or all sites ? The current solution that I have suggested is based on deploying the code on a specific page. It is not ideal to add the code over and over again.

If it needs to be deployed everywhere, an SPFx extension is a better way to solve this.
Highlighted

@ArefHalmstrand Thanks again.

I just need it on 1 site page- not on the whole site.

Highlighted
Okay!

Let us take this conversation further through private message and MS Teams. :)
Highlighted

@GulianiG What you're seeing is a function of your monitor size relative to the optimal screen size that the page is formatted for. You can see this exact mechanism at work if you go to your favorite retail website, such as Amazon or Best Buy. 

 

Open the website in a laptop or resize your browser to be approximately the size of a 13' laptop screen. Now, drag the window wider until it's the width of your screen. See how it fills the extra space on the sides with color bars? That space doesn't really exist on your page. It's just fill to account for your monitor being larger than what the page was optimized for.

 

SharePoint is doing the EXACT same thing. In a communication site like you've pictured, you'll see the excess fill space split left-right as you've shown. In a team site, the page will be left justified and and all the fill space will be on the right.

 

SharePoint does this to allow for the responsive design of the pages. The web parts with reconfigure and rearrange themselves to suit the size of your screen so the page looks good on a large monitor, laptop, tablet or phone.

 

I would not mess with it. You risk really messing up how your page works on other screen sizes. 

Highlighted
Yes that is how responsive design works. However, removing the width limit is only going to make it better. The web parts will still adapt to the browser width and work as usual.

There is no reason to fear minor DOM manipulations. :)
Highlighted

@ArefHalmstrand Thank you so much for confirming that.

Being able to have the widest screen possible irrespective of devices would make sense.

Because almost 40% users have extended monitor for display that is very large in comparison to our laptop screen users. And if this functionality can cater to both- nothing like it! Looking forward :stareyes: