This commit is contained in:
parent
3f8917c803
commit
4fc96e48fd
|
|
@ -6,7 +6,6 @@ import reflex as rx
|
||||||
|
|
||||||
from application.states import AuthState, TaskState
|
from application.states import AuthState, TaskState
|
||||||
from application.states.models import (
|
from application.states.models import (
|
||||||
TaskHistoryItem,
|
|
||||||
MessageHistoryItem,
|
MessageHistoryItem,
|
||||||
MessageType,
|
MessageType,
|
||||||
WorkflowType,
|
WorkflowType,
|
||||||
|
|
@ -524,35 +523,59 @@ def message_history() -> rx.Component:
|
||||||
font_size="var(--prismui-font-size-1)",
|
font_size="var(--prismui-font-size-1)",
|
||||||
color="var(--prismui-color-3)",
|
color="var(--prismui-color-3)",
|
||||||
),
|
),
|
||||||
rx.box(
|
rx.tooltip(
|
||||||
rx.icon(
|
rx.box(
|
||||||
"panel-right",
|
rx.icon(
|
||||||
width="16px",
|
"panel-right",
|
||||||
height="16px",
|
width="16px",
|
||||||
object_fit="contain",
|
height="16px",
|
||||||
color="var(--prismui-color-2)",
|
object_fit="contain",
|
||||||
|
color="var(--prismui-color-2)",
|
||||||
|
),
|
||||||
|
display="flex",
|
||||||
|
align_items="center",
|
||||||
|
justify_content="center",
|
||||||
|
width="32px",
|
||||||
|
height="32px",
|
||||||
|
border_radius="var(--prismui-border-radius-3)",
|
||||||
|
cursor="pointer",
|
||||||
|
style={
|
||||||
|
"_hover": {
|
||||||
|
"background_color": "var(--prismui-background-color-2)"
|
||||||
|
}
|
||||||
|
},
|
||||||
),
|
),
|
||||||
display="flex",
|
content="产物面板",
|
||||||
align_items="center",
|
|
||||||
justify_content="center",
|
|
||||||
width="32px",
|
|
||||||
height="32px",
|
|
||||||
border_radius="var(--prismui-border-radius-3)",
|
|
||||||
),
|
),
|
||||||
rx.box(
|
rx.menu.root(
|
||||||
rx.icon(
|
rx.menu.trigger(
|
||||||
"ellipsis",
|
rx.box(
|
||||||
width="16px",
|
rx.icon(
|
||||||
height="16px",
|
"ellipsis",
|
||||||
object_fit="contain",
|
width="16px",
|
||||||
color="var(--prismui-color-2)",
|
height="16px",
|
||||||
|
object_fit="contain",
|
||||||
|
color="var(--prismui-color-2)",
|
||||||
|
),
|
||||||
|
display="flex",
|
||||||
|
align_items="center",
|
||||||
|
justify_content="center",
|
||||||
|
width="32px",
|
||||||
|
height="32px",
|
||||||
|
border_radius="var(--prismui-border-radius-3)",
|
||||||
|
cursor="pointer",
|
||||||
|
style={
|
||||||
|
"_hover": {
|
||||||
|
"background_color": "var(--prismui-background-color-2)"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
)
|
||||||
|
),
|
||||||
|
rx.menu.content(
|
||||||
|
rx.menu.item(
|
||||||
|
rx.hstack(rx.icon("trash"), rx.text("删除"))
|
||||||
|
)
|
||||||
),
|
),
|
||||||
display="flex",
|
|
||||||
align_items="center",
|
|
||||||
justify_content="center",
|
|
||||||
width="32px",
|
|
||||||
height="32px",
|
|
||||||
border_radius="var(--prismui-border-radius-3)",
|
|
||||||
),
|
),
|
||||||
align_items="center",
|
align_items="center",
|
||||||
gap="4px",
|
gap="4px",
|
||||||
|
|
|
||||||
|
|
@ -114,6 +114,18 @@ pre, pre code {
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes spin {
|
@keyframes spin {
|
||||||
from { transform: rotate(0deg); }
|
from { transform: rotate(0deg); }
|
||||||
to { transform: rotate(360deg); }
|
to { transform: rotate(360deg); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.rt-TooltipArrow polygon {
|
||||||
|
fill: var(--prismui-color-2) !important;
|
||||||
|
}
|
||||||
|
.rt-TooltipContent {
|
||||||
|
background: var(--prismui-color-2) !important;
|
||||||
|
|
||||||
|
}
|
||||||
|
.rt-TooltipText {
|
||||||
|
font-family: var(--prismui-font-family) !important;
|
||||||
|
color: var(--prismui-color-7) !important;
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue