carbon-components-svelte/docs/src
Gregor Wassmann 4a81785036 Fix horizontal scrollbars on small screens
This patch addresses #1649 to fix documentation layout. In fact there are multiple issues with the current layout.

1. Flex layout might have an issue with overflowing content. See https://codepen.io/gregorw/full/gOdqreo.
2. The props table at the bottom of each page doesn’t overflow and stretches the layout.

This minimal change fixes code snippets in such a way that they are wrapped on small screens, since `overflow-x: scroll` doesn’t seem to work with the flexbox layout used. See code pen for problem description and solution A. This fixes horizontal scrollbars on all pages that don’t have other issues such as a large non-overflowing props table at the bottom.

The prop table at the bottom needs a separate PR. Possible solutions are that we get overflow/scroll to work or that we change to the mobile table of contents earlier. Maybe using a non-flexbox layout would solve some of the problems, too. See solution B of code pen above.
2023-03-26 12:46:48 +02:00
..
components Fix horizontal scrollbars on small screens 2023-03-26 12:46:48 +02:00
layouts docs: link source code to folder for multiple components (#1582) 2022-12-10 20:49:42 -05:00
pages docs(tag): fix typo (#1705) 2023-03-25 13:18:42 -07:00
App.svelte Update docs (#965) 2022-01-01 10:58:42 -08:00
COMPONENT_API.json fix(selectable-tile): include dispatched events in types (#1695) 2023-03-20 21:27:29 -04:00
global.css Fix horizontal scrollbars on small screens 2023-03-26 12:46:48 +02:00
index.js docs: use all.css for prefixed styles (#1221) 2022-04-02 11:45:29 -07:00
store.js Improve documentation (#730) 2021-07-08 16:30:53 -07:00