mirror of
https://github.com/vale981/ray
synced 2025-03-04 17:41:43 -05:00
[CI] Fix frontend build issue (#20375)
This commit is contained in:
parent
91920f1d02
commit
72ae22e82b
1 changed files with 3 additions and 15 deletions
|
@ -1,12 +1,6 @@
|
|||
import dayjs from "dayjs";
|
||||
import low from "lowlight";
|
||||
import React, {
|
||||
CSSProperties,
|
||||
MutableRefObject,
|
||||
useEffect,
|
||||
useRef,
|
||||
useState,
|
||||
} from "react";
|
||||
import React, { MutableRefObject, useEffect, useRef, useState } from "react";
|
||||
import { FixedSizeList as List } from "react-window";
|
||||
import "./darcula.css";
|
||||
import "./github.css";
|
||||
|
@ -112,18 +106,12 @@ const LogVirtualView: React.FC<LogVirtualViewProps> = ({
|
|||
if (listRef) {
|
||||
listRef.current = outter.current;
|
||||
}
|
||||
const itemRenderer = ({
|
||||
index,
|
||||
style: s,
|
||||
}: {
|
||||
index: number;
|
||||
style: CSSProperties;
|
||||
}) => {
|
||||
const itemRenderer = ({ index, style }: { index: number; style: any }) => {
|
||||
const { i, origin } = logs[revert ? logs.length - 1 - index : index];
|
||||
return (
|
||||
<div
|
||||
key={`${index}list`}
|
||||
style={{ ...s, overflowX: "visible", whiteSpace: "pre" }}
|
||||
style={{ ...style, overflowX: "visible", whiteSpace: "pre" }}
|
||||
>
|
||||
<span
|
||||
style={{
|
||||
|
|
Loading…
Add table
Reference in a new issue