import styled from '@emotion/styled'; import Breadcrumbs from 'sentry/components/breadcrumbs'; import Button from 'sentry/components/button'; import ButtonBar from 'sentry/components/buttonBar'; import * as Layout from 'sentry/components/layouts/thirds'; import Link from 'sentry/components/links/link'; import space from 'sentry/styles/space'; const crumbs = [ { label: 'Issues', to: '', }, { label: 'List', to: '', }, { label: 'Detail', to: '', }, ]; export default { title: 'Views/Layout - Thirds', }; export const _6633Layout = () => ( Some heading content Content Region Some text here Sidebar content ); _6633Layout.storyName = '66/33'; _6633Layout.parameters = { docs: { description: { story: 'Two column layout with header & sidebar', }, }, }; export const _6633WithHeaderControls = () => ( Some heading content Save Delete Update Content Region Some text here Sidebar content ); _6633WithHeaderControls.storyName = '66/33 - With Header Controls'; _6633WithHeaderControls.parameters = { docs: { description: { story: 'Two column layout with header actions', }, }, }; export const _6633WithManyHeaderControls = () => ( Heading text Save Update rollup modify create update delete Content Region Some text here Sidebar content ); _6633WithManyHeaderControls.storyName = '66/33 - With Many Header Controls'; _6633WithManyHeaderControls.parameters = { docs: { description: { story: 'Two column layout with header controls', }, }, }; export const SingleColumnMode = () => ( Some heading content clicker clicker Content Region Some text here, that goes on and on. It should strecth the full width of the container, and have no space on the right. ); SingleColumnMode.storyName = 'Single Column Mode'; SingleColumnMode.parameters = { docs: { description: { story: 'Single column mode so we can hide the sidebar', }, }, }; export const _6633WithTabNavigation = () => ( Alerts clicker clicker Active Inactive Content Region Some text here Sidebar content ); _6633WithTabNavigation.storyName = '66/33 - With Tab-based Nav'; _6633WithTabNavigation.parameters = { docs: { description: { story: 'Two column layout with tab navigation', }, }, }; const Container = styled('div')` background: ${p => p.theme.backgroundSecondary}; margin: ${space(2)}; border: 1px solid ${p => p.theme.border}; `; const MarginedButtonBar = styled(ButtonBar)` margin-bottom: ${space(1)}; `; const StyledLayoutTitle = styled(Layout.Title)` margin-top: ${space(0.5)}; `; const BorderlessHeader = styled(Layout.Header)` border-bottom: 0; `; const TabLayoutHeader = styled(Layout.Header)` padding-top: 0; @media (max-width: ${p => p.theme.breakpoints.medium}) { padding-top: 0; } `;
Some text here
Some text here, that goes on and on. It should strecth the full width of the container, and have no space on the right.