Skip to content

Commit

Permalink
chore: update utility classes in component explorer to auto-wrap to t…
Browse files Browse the repository at this point in the history
…wo lines on the smallest screen sizes
  • Loading branch information
sghoweri committed Jan 7, 2019
1 parent f519bd2 commit a58aaad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs-site/src/components/pattern-lab-utils/docs.twig
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@
</script>
<bolt-component-explorer schema-uuid="schema-{{ schemaUUID }}" initial-layout="{{ schemaForm.layout }}" template="{{ schemaForm.template }}" form-data="{{ schemaForm.initialData | json_encode() | escape('html_attr') }}">
<replace-with-children style="background-color: #F6F6F9; display: flex; margin: 0 auto; max-width: 1024px; min-height: 320px; -webkit-overflow-scroll': 'touch'">
<replace-with-children class="u-bolt-flex-grow u-bolt-flex-shrink u-bolt-width-6/10"
<replace-with-children class="u-bolt-flex-grow u-bolt-flex-shrink u-bolt-width-1/1 u-bolt-width-6/10@xsmall"
style="background-color: #FFF; border: 1px solid rgba(0, 0, 0, .075); display: flex; position: relative;">
<replace-with-children class="u-bolt-padding-medium c-bds-component-explorer__demo-container" style="width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; box-shadow: inset rgba(0, 0, 0, 0.1) 0px 0px 30px;">
Loading...
</replace-with-children>
</replace-with-children>
<replace-with-children class="u-bolt-flex-grow u-bolt-flex-shrink u-bolt-width-4/10" style="flex-basis: 200px; overflow: visible; margin-left: auto; position: relative; display: flex;">
<replace-with-children class="u-bolt-flex-grow u-bolt-flex-shrink u-bolt-width-1/1 u-bolt-width-4/10@xsmall" style="flex-basis: 200px; overflow: visible; margin-left: auto; position: relative; display: flex;">
<replace-with-children style="-webkit-overflow-scroll: touch; padding: 0.5rem; border: 1px solid #d8d8da; width: 100%;">
{# <bolt-schema-form></bolt-schema-form> #}
</replace-with-children>
Expand Down
4 changes: 2 additions & 2 deletions docs-site/src/components/schema-form/component-explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default class ComponentExplorer extends withContext(withLitHtml()) {
backgroundColor: '#F6F6F9',
margin: '0 auto',
})}">
<div class="u-bolt-flex-grow u-bolt-flex-shrink u-bolt-width-6/10"
<div class="u-bolt-flex-grow u-bolt-flex-shrink u-bolt-width-1/1 u-bolt-width-6/10@xsmall"
style="${styleMap({
backgroundColor: '#FFF',
border: '1px solid rgba(0, 0, 0, .075)',
Expand All @@ -150,7 +150,7 @@ export default class ComponentExplorer extends withContext(withLitHtml()) {
</div>
</div>
<div
class="u-bolt-flex-grow u-bolt-flex-shrink u-bolt-width-4/10"
class="u-bolt-flex-grow u-bolt-flex-shrink u-bolt-width-1/1 u-bolt-width-4/10@xsmall"
style="${styleMap({
flexBasis: '200px',
overflow: 'visible',
Expand Down

0 comments on commit a58aaad

Please sign in to comment.