|
|
|
@ -87,11 +87,13 @@ export const TimePickerContentWithScreenSize = (props: PropsWithScreenSize) => { |
|
|
|
placeholder={t('time-picker.content.filter-placeholder', 'Search quick ranges')} |
|
|
|
placeholder={t('time-picker.content.filter-placeholder', 'Search quick ranges')} |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div className={styles.scrollContent}> |
|
|
|
{!isFullscreen && <NarrowScreenForm {...props} historyOptions={historyOptions} />} |
|
|
|
{!isFullscreen && <NarrowScreenForm {...props} historyOptions={historyOptions} />} |
|
|
|
{!hideQuickRanges && ( |
|
|
|
{!hideQuickRanges && ( |
|
|
|
<TimeRangeList options={filteredQuickOptions} onChange={onChangeTimeOption} value={timeOption} /> |
|
|
|
<TimeRangeList options={filteredQuickOptions} onChange={onChangeTimeOption} value={timeOption} /> |
|
|
|
)} |
|
|
|
)} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
)} |
|
|
|
)} |
|
|
|
{isFullscreen && ( |
|
|
|
{isFullscreen && ( |
|
|
|
<div className={styles.leftSide}> |
|
|
|
<div className={styles.leftSide}> |
|
|
|
@ -307,6 +309,10 @@ const getStyles = ( |
|
|
|
spacing: css({ |
|
|
|
spacing: css({ |
|
|
|
marginTop: '16px', |
|
|
|
marginTop: '16px', |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
scrollContent: css({ |
|
|
|
|
|
|
|
overflowY: 'auto', |
|
|
|
|
|
|
|
scrollbarWidth: 'thin', |
|
|
|
|
|
|
|
}), |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
const getNarrowScreenStyles = (theme: GrafanaTheme2) => ({ |
|
|
|
const getNarrowScreenStyles = (theme: GrafanaTheme2) => ({ |
|
|
|
|