1. A computer-implemented method comprising: detecting a request on a client device to embed a folder in a document displayed on the client device, the document having visible document content and the folder containing one or more content items, wherein the folder and the one or more content items are synchronized with a content management system; designating a region of the document as a preview region for the folder; generating content item previews for the one or more content items; selecting, for display in the preview region, a subset of the generated content item previews; displaying, within the preview region, the selected subset of content item previews; receiving a scrolling input to the client device; in response to the scrolling input having a vertical direction, scrolling the document content, including the preview region, in the direction of the scrolling input; and in response to the scrolling input having a horizontal direction, irrespective of a location of the received horizontal scrolling input: scrolling out of the preview region a number of content item previews; and scrolling into the preview region the number of additional generated content item previews not included in the displayed subset of the generated content item previews, without scrolling the document.
1. A computer-implemented method comprising: detecting a request on a client device to embed a folder in a document displayed on the client device, the document having visible document content and the folder containing one or more content items, wherein the folder and the one or more content items are synchronized with a content management system; designating a region of the document as a preview region for the folder; generating content item previews for the one or more content items; selecting, for display in the preview region, a subset of the generated content item previews; displaying, within the preview region, the selected subset of content item previews; receiving a scrolling input to the client device; in response to the scrolling input having a vertical direction, scrolling the document content, including the preview region, in the direction of the scrolling input; and in response to the scrolling input having a horizontal direction, irrespective of a location of the received horizontal scrolling input: scrolling out of the preview region a number of content item previews; and scrolling into the preview region the number of additional generated content item previews not included in the displayed subset of the generated content item previews, without scrolling the document. 5. The method of claim 1 further comprising: detecting a change to the one or more content items; receiving an updated preview of the folder; and responsive to the preview region being in a visible portion of the document, displaying the updated preview of the folder in the preview region.