From 1e703f06dfa07d478a53b9bd385ba6a467e76080 Mon Sep 17 00:00:00 2001 From: Fuyao Zhao Date: Tue, 12 Mar 2019 21:08:49 -0700 Subject: [PATCH] [Code]: fix top bar button size, width and right margin (#33061) --- x-pack/plugins/code/public/components/main/content.tsx | 9 ++++++--- x-pack/plugins/code/public/components/main/top_bar.tsx | 4 +--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/x-pack/plugins/code/public/components/main/content.tsx b/x-pack/plugins/code/public/components/main/content.tsx index b6f3a3ad7f064..031873a1c4d92 100644 --- a/x-pack/plugins/code/public/components/main/content.tsx +++ b/x-pack/plugins/code/public/components/main/content.tsx @@ -44,6 +44,9 @@ const ButtonsContainer = styled.div` & > *:first-child { margin-right: ${theme.euiSizeS}; } + & .euiButton { + min-width: ${theme.euiSizeS}; + } `; const EditorBlameContainer = styled.div` @@ -182,7 +185,7 @@ class CodeContent extends React.PureComponent { return ( { onChange={this.switchButton} /> { return ( { - - {this.props.buttons} - + {this.props.buttons} );