Fix sidebar display
Summary:
Before:
{F162109040}
Reviewed By: danielbuechele
Differential Revision: D15855444
fbshipit-source-id: c95ab1b0aa577dec5d493a0f6d166cb3aeeb7419
This commit is contained in:
committed by
Facebook Github Bot
parent
098d0bdba3
commit
977a304672
@@ -13,6 +13,8 @@ import {
|
|||||||
Text,
|
Text,
|
||||||
Panel,
|
Panel,
|
||||||
ManagedDataInspector,
|
ManagedDataInspector,
|
||||||
|
FlexColumn,
|
||||||
|
FlexRow,
|
||||||
colors,
|
colors,
|
||||||
styled,
|
styled,
|
||||||
} from 'flipper';
|
} from 'flipper';
|
||||||
@@ -28,6 +30,10 @@ const DataDescriptionKey = styled('span')({
|
|||||||
color: colors.grapeDark1,
|
color: colors.grapeDark1,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const WordBreakFlexColumn = styled(FlexColumn)({
|
||||||
|
wordBreak: 'break-all',
|
||||||
|
});
|
||||||
|
|
||||||
export default class ImagesSidebar extends Component<
|
export default class ImagesSidebar extends Component<
|
||||||
ImagesSidebarProps,
|
ImagesSidebarProps,
|
||||||
ImagesSidebarState,
|
ImagesSidebarState,
|
||||||
@@ -51,15 +57,23 @@ export default class ImagesSidebar extends Component<
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<p>
|
<Panel heading="Sources" floating={false}>
|
||||||
<DataDescriptionKey>URI</DataDescriptionKey>
|
<FlexRow>
|
||||||
<span key="sep">: </span>
|
<FlexColumn>
|
||||||
<DataDescription
|
<DataDescriptionKey>URI</DataDescriptionKey>
|
||||||
type="string"
|
</FlexColumn>
|
||||||
value={this.props.image.uri}
|
<FlexColumn>
|
||||||
setValue={function(path: Array<string>, val: any) {}}
|
<span key="sep">: </span>
|
||||||
/>
|
</FlexColumn>
|
||||||
</p>
|
<WordBreakFlexColumn>
|
||||||
|
<DataDescription
|
||||||
|
type="string"
|
||||||
|
value={this.props.image.uri}
|
||||||
|
setValue={null}
|
||||||
|
/>
|
||||||
|
</WordBreakFlexColumn>
|
||||||
|
</FlexRow>
|
||||||
|
</Panel>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user