Fix the AD bar when the window width is too small
Summary:
This diff fixes the broken UI of advertising bar when window size is too small
Bug:
{F219320329}
Reviewed By: jknoxville
Differential Revision: D18114230
fbshipit-source-id: fda321af761f9707077ded5d53a51e79f4cd26d6
This commit is contained in:
committed by
Facebook Github Bot
parent
652ffd43d6
commit
f00f0ad4b9
@@ -57,7 +57,6 @@ export type PersistedState = {
|
|||||||
const FlipperADBarContainer = styled(FlexRow)({
|
const FlipperADBarContainer = styled(FlexRow)({
|
||||||
backgroundColor: colors.warningTint,
|
backgroundColor: colors.warningTint,
|
||||||
flexGrow: 1,
|
flexGrow: 1,
|
||||||
height: 50,
|
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
borderWidth: 2,
|
borderWidth: 2,
|
||||||
@@ -67,6 +66,10 @@ const FlipperADText = styled(Text)({
|
|||||||
padding: 10,
|
padding: 10,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const FlipperADButton = styled(Button)({
|
||||||
|
margin: 10,
|
||||||
|
});
|
||||||
|
|
||||||
export default class Layout extends FlipperPlugin<State, any, PersistedState> {
|
export default class Layout extends FlipperPlugin<State, any, PersistedState> {
|
||||||
FlipperADBar() {
|
FlipperADBar() {
|
||||||
return (
|
return (
|
||||||
@@ -76,13 +79,13 @@ export default class Layout extends FlipperPlugin<State, any, PersistedState> {
|
|||||||
automatically attaches critical information for reproducing your issue
|
automatically attaches critical information for reproducing your issue
|
||||||
with just a single click.
|
with just a single click.
|
||||||
</FlipperADText>
|
</FlipperADText>
|
||||||
<Button
|
<FlipperADButton
|
||||||
type="primary"
|
type="primary"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
this.props.setStaticView(SupportRequestFormManager);
|
this.props.setStaticView(SupportRequestFormManager);
|
||||||
}}>
|
}}>
|
||||||
Try it out
|
Try it out
|
||||||
</Button>
|
</FlipperADButton>
|
||||||
</FlipperADBarContainer>
|
</FlipperADBarContainer>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user