diff --git a/src/device-plugins/logs/index.js b/src/device-plugins/logs/index.js index 27e79930e..8f323d212 100644 --- a/src/device-plugins/logs/index.js +++ b/src/device-plugins/logs/index.js @@ -201,14 +201,17 @@ const DEFAULT_FILTERS = [ }, ]; -const NonSelectableText = Text.extends({ +const HiddenScrollText = Text.extends({ alignSelf: 'baseline', userSelect: 'none', lineHeight: '130%', marginTop: 6, + '&::-webkit-scrollbar': { + display: 'none', + }, }); -const LogCount = NonSelectableText.extends( +const LogCount = HiddenScrollText.extends( { backgroundColor: props => props.color, borderRadius: '999em', @@ -226,12 +229,6 @@ const LogCount = NonSelectableText.extends( }, ); -const HiddenScrollText = NonSelectableText.extends({ - '&::-webkit-scrollbar': { - display: 'none', - }, -}); - function pad(chunk: mixed, len: number): string { let str = String(chunk); while (str.length < len) { @@ -343,29 +340,29 @@ export default class LogTable extends SonarDevicePlugin { }, tag: { value: ( - {entry.tag} + {entry.tag} ), isFilterable: true, }, pid: { value: ( - + {String(entry.pid)} - + ), isFilterable: true, }, tid: { value: ( - + {String(entry.tid)} - + ), isFilterable: true, }, app: { value: ( - {entry.app} + {entry.app} ), isFilterable: true, },