Skip to content

Commit

Permalink
fix: 修复build过程中发生的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
sysfox committed Jan 27, 2025
1 parent ed1042b commit ea9cb6b
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions app/components/EnvVariableConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,16 @@ export function EnvVariableConfig({ variableNames, format }: { variableNames: {
className="border rounded-lg px-2 py-2 w-1/2 bg-transparent focus:outline-none focus:border-black hover:border-white-400 transition duration-300 font-[400] font-sans text-sm cursor-not-allowed dark:border-gray-700 dark:text-gray-300 dark:bg-gray-800"
value={name.name || name.key}
data-tip={name.key}
title={name.name || name.key}
placeholder={name.name || name.key}
onMouseOver={(e: any) => {
e.target.style.color = 'transparent';
setTimeout(() => {
e.target.style.color = 'inherit';
e.target.value = e.target.dataset.tip;
}, 300);
if (typeof window !== 'undefined') {
e.target.style.color = 'transparent';
setTimeout(() => {
e.target.style.color = 'inherit';
e.target.value = e.target.dataset.tip;
}, 0);
}
}}
onMouseLeave={(e: any) => {
e.target.style.color = 'transparent';
Expand All @@ -62,8 +66,7 @@ export function EnvVariableConfig({ variableNames, format }: { variableNames: {
/>
<input
type="text"
className="border rounded-lg px-2 py-2 w-1/2 focus:outline-none focus:border-black hover:border-gray-400 transition duration-300 font-[400] font-sans text-sm dark:border-gray-700 dark:text-gray-300 dark:bg-gray-800"
style={{ outline: "none", boxShadow: "none" }}
className="border rounded-lg px-2 py-2 w-1/2 focus:outline-none focus:border-black hover:border-gray-400 transition duration-300 font-[400] font-sans text-sm dark:border-gray-700 dark:text-gray-300 dark:bg-gray-800 focus:shadow-none"
placeholder={`Enter value...`}
value={values[index]}
onChange={(e) => handleChange(index, e.target.value)}
Expand Down

0 comments on commit ea9cb6b

Please sign in to comment.