Minor style tweaks
This commit is contained in:
parent
b823e60097
commit
310192dd53
4 changed files with 12 additions and 3 deletions
|
@ -70,3 +70,7 @@
|
||||||
.logPlaceholderIcon {
|
.logPlaceholderIcon {
|
||||||
opacity: 0.3;
|
opacity: 0.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.search {
|
||||||
|
max-width: 1000px;
|
||||||
|
}
|
||||||
|
|
|
@ -76,7 +76,9 @@ function Logs({ dispatch, logLevel, apiConfig, logs, logStreamingPaused }) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<ContentHeader title={t('Logs')} />
|
<ContentHeader title={t('Logs')} />
|
||||||
<LogSearch />
|
<div className={s.search}>
|
||||||
|
<LogSearch />
|
||||||
|
</div>
|
||||||
<div ref={refLogsContainer} style={{ paddingBottom }}>
|
<div ref={refLogsContainer} style={{ paddingBottom }}>
|
||||||
{logs.length === 0 ? (
|
{logs.length === 0 ? (
|
||||||
<div className={s.logPlaceholder} style={{ height: containerHeight - paddingBottom }}>
|
<div className={s.logPlaceholder} style={{ height: containerHeight - paddingBottom }}>
|
||||||
|
|
|
@ -37,4 +37,7 @@
|
||||||
top: 50%;
|
top: 50%;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
left: 10px;
|
left: 10px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ import s0 from './Search.module.scss';
|
||||||
function RuleSearch({ dispatch, searchText, updateSearchText }) {
|
function RuleSearch({ dispatch, searchText, updateSearchText }) {
|
||||||
const [text, setText] = useState(searchText);
|
const [text, setText] = useState(searchText);
|
||||||
const updateSearchTextInternal = useCallback(
|
const updateSearchTextInternal = useCallback(
|
||||||
(v) => {
|
(v: string) => {
|
||||||
dispatch(updateSearchText(v));
|
dispatch(updateSearchText(v));
|
||||||
},
|
},
|
||||||
[dispatch, updateSearchText]
|
[dispatch, updateSearchText]
|
||||||
|
@ -16,7 +16,7 @@ function RuleSearch({ dispatch, searchText, updateSearchText }) {
|
||||||
() => debounce(updateSearchTextInternal, 300),
|
() => debounce(updateSearchTextInternal, 300),
|
||||||
[updateSearchTextInternal]
|
[updateSearchTextInternal]
|
||||||
);
|
);
|
||||||
const onChange = (e) => {
|
const onChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||||
setText(e.target.value);
|
setText(e.target.value);
|
||||||
updateSearchTextDebounced(e.target.value);
|
updateSearchTextDebounced(e.target.value);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue