Skip to content

Commit

Permalink
fix(selector): don't apply paddings to "show code" button
Browse files Browse the repository at this point in the history
  • Loading branch information
rbardini committed Jul 11, 2021
1 parent 33a4bf6 commit f5e9130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const WithPaddings: StoryWrapper = (getStory, context) => {
const paddingsConfig = parameters[PARAM_KEY];
const isInDocs = viewMode === 'docs';
const selector = isInDocs
? `#anchor--${id} .docs-story > div`
? `#anchor--${id} .docs-story > div:first-child`
: '.sb-show-main';

const selectedPadding = useMemo(
Expand Down

0 comments on commit f5e9130

Please sign in to comment.