fix(junction): make complex corner radius responsive
This commit is contained in:
1 parent
36a8291c05
commit
53a2cb3450
8 files changed
+103
-11
No files matched your search
@@ -233,12 +233,15 @@ export function ParameterPanel({
|
||||
handles,
|
||||
hasSelection,
|
||||
grouped = false,
|
||||
previewPending = false,
|
||||
ref,
|
||||
...callbacks
|
||||
}: RowCallbacks & {
|
||||
handles: EditHandle[];
|
||||
hasSelection: boolean;
|
||||
grouped?: boolean;
|
||||
/** An authoritative preview is queued or being solved for the shown values. */
|
||||
previewPending?: boolean;
|
||||
ref?: Ref<ParameterPanelHandle>;
|
||||
}) {
|
||||
const nodes = useRef(new Map<string, HTMLInputElement>());
|
||||
@@ -307,7 +310,12 @@ export function ParameterPanel({
|
||||
|
||||
return (
|
||||
<section className="parameters">
|
||||
<h1>{grouped ? '路口参数' : '道路参数'}</h1>
|
||||
<div className="parameters-heading">
|
||||
<h1>{grouped ? '路口参数' : '道路参数'}</h1>
|
||||
<span className={previewPending ? 'parameters-pending' : 'parameters-pending is-idle'} aria-live="polite">
|
||||
正在更新预览…
|
||||
</span>
|
||||
</div>
|
||||
{handles.length ? (
|
||||
grouped ? (
|
||||
<GroupedParameterList groups={[...groupedHandles.entries()]} register={register} {...callbacks} />
|
||||
|
||||
Reference in new issue
Block a user