diff --git a/src/webview/src/components/Function.tsx b/src/webview/src/components/Function.tsx index 1103c91..af43337 100644 --- a/src/webview/src/components/Function.tsx +++ b/src/webview/src/components/Function.tsx @@ -30,9 +30,27 @@ const styles = { padding: '8px 12px', justifyContent: 'space-between', }, + titleContainer: { + display: 'flex', + alignItems: 'center', + }, title: { - marginTop: '0px', - marginBottom: '0px', + margin: '0', + fontSize: '14px', + }, + icon: { + marginRight: '4px', + cursor: 'default', + display: 'inline-flex', + alignItems: 'center', + justifyContent: 'center', + width: '12px', + height: '10px', + borderRadius: '2px', + border: '1px dotted var(--vscode-foreground)', + color: 'var(--vscode-foreground)', + fontSize: '8px', + fontWeight: 'bold' as const, }, arrow: { transition: 'transform 0.3s ease', @@ -57,13 +75,13 @@ const styles = { }; export const Function = ({ - isWrire, + isWrite, name, func, isDisable, onExcute, }: { - isWrire: boolean; + isWrite: boolean; name: string; func: MoveFunction; isDisable: boolean; @@ -137,7 +155,24 @@ export const Function = ({ setIsOpen(!isOpen); }} > -
{name}
+
+ {isWrite ? ( + func.is_entry ? ( + + E + + ) : ( + + P + + ) + ) : ( + + R + + )} +
{name}
+
)} - {(!isWrire || result) && ( + {(!isWrite || result) && ( <> @@ -242,7 +277,7 @@ export const Function = ({ }} > {