This commit is contained in:
iqudoo
2026-06-16 23:41:27 +08:00
parent 43900a8b52
commit 3a50e7e33b
7 changed files with 78 additions and 38 deletions

View File

@@ -110,7 +110,7 @@ export const ElementMaskDialog: React.FC<ElementMaskDialogProps> = ({
};
return createPortal(
<div className="ps-modal-overlay" onClick={onClose} role="presentation">
<div className="ps-modal-overlay" role="presentation">
<div
className="ps-modal"
onClick={(e) => e.stopPropagation()}
@@ -129,7 +129,7 @@ export const ElementMaskDialog: React.FC<ElementMaskDialogProps> = ({
<form onSubmit={handleSubmit}>
<div className="ps-modal-body space-y-3">
<p className="text-[11px] text-[#888] leading-relaxed">
</p>
<div>

View File

@@ -511,10 +511,10 @@ export const PropSidebar: React.FC<PropSidebarProps> = ({
<p className="text-[10px] text-[#888]"></p>
) : (
<div className="space-y-3">
<div className="space-y-2 pt-2">
<div className="text-[10px] font-bold text-[#31a8ff]"></div>
<p className="text-[10px] text-[#666] leading-relaxed mb-3">
<p className="text-[10px] text-[#666] leading-relaxed">
</p>
{templateVariables.map((v) => {
const inUse = isTemplateVariableInUse(template, v);
@@ -2289,10 +2289,15 @@ export const PropSidebar: React.FC<PropSidebarProps> = ({
</div>
<div
className={`ps-layer-item-actions pointer-events-auto ${isNarrowScreen || variant === 'mobile' || isLocked
? 'opacity-100'
: 'opacity-0 group-hover:opacity-100 transition-opacity'
}`}
className={`ps-layer-item-actions pointer-events-auto ${
isNarrowScreen || variant === 'mobile' || isLocked
? ''
: 'ps-layer-item-actions--float'
} ${
isNarrowScreen || variant === 'mobile' || isLocked
? 'opacity-100'
: ''
}`}
>
{!isLocked && (
<>

View File

@@ -124,7 +124,7 @@ export const VisibilityRuleDialog: React.FC<VisibilityRuleDialogProps> = ({
};
return createPortal(
<div className="ps-modal-overlay" onClick={onClose} role="presentation">
<div className="ps-modal-overlay" role="presentation">
<div
className="ps-modal"
onClick={(e) => e.stopPropagation()}