mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-26 07:59:48 +03:00
actionListItemTime
This commit is contained in:
parent
627ae13300
commit
ec1d1d4170
|
@ -11,6 +11,7 @@ import {
|
|||
actionListItemCss,
|
||||
actionListItemSelectedCss,
|
||||
actionListItemSkippedCss,
|
||||
actionListItemTimeCss,
|
||||
} from './utils/createStylingFromTheme';
|
||||
|
||||
const BUTTON_SKIP = 'Skip';
|
||||
|
@ -98,7 +99,7 @@ export default class ActionListRow<
|
|||
</div>
|
||||
{hideActionButtons ? (
|
||||
<RightSlider styling={styling} shown>
|
||||
<div {...styling('actionListItemTime')}>
|
||||
<div css={actionListItemTimeCss}>
|
||||
{timeDelta === 0
|
||||
? '+00:00:00'
|
||||
: dateformat(
|
||||
|
@ -110,7 +111,7 @@ export default class ActionListRow<
|
|||
) : (
|
||||
<div css={actionListItemButtonsCss}>
|
||||
<RightSlider styling={styling} shown={!showButtons} rotate>
|
||||
<div {...styling('actionListItemTime')}>
|
||||
<div css={actionListItemTimeCss}>
|
||||
{timeDelta === 0
|
||||
? '+00:00:00'
|
||||
: dateformat(
|
||||
|
|
|
@ -134,19 +134,19 @@ export const actionListItemButtonsCss = css({
|
|||
display: 'flex',
|
||||
});
|
||||
|
||||
export const actionListItemTimeCss: Interpolation<Theme> = (theme) => ({
|
||||
display: 'inline',
|
||||
padding: '4px 6px',
|
||||
borderRadius: '3px',
|
||||
fontSize: '0.8em',
|
||||
lineHeight: '1em',
|
||||
flexShrink: 0,
|
||||
|
||||
backgroundColor: colorMap(theme).ACTION_TIME_BACK_COLOR,
|
||||
color: colorMap(theme).ACTION_TIME_COLOR,
|
||||
});
|
||||
|
||||
const getSheetFromColorMap = (map: ColorMap) => ({
|
||||
actionListItemTime: {
|
||||
display: 'inline',
|
||||
padding: '4px 6px',
|
||||
'border-radius': '3px',
|
||||
'font-size': '0.8em',
|
||||
'line-height': '1em',
|
||||
'flex-shrink': 0,
|
||||
|
||||
'background-color': map.ACTION_TIME_BACK_COLOR,
|
||||
color: map.ACTION_TIME_COLOR,
|
||||
},
|
||||
|
||||
actionListItemSelector: {
|
||||
display: 'inline-flex',
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user