Skip to content

Commit 8d33693

Browse files
Merge pull request #3008 from github/robertbrignull/modeled_row_styling
Fix styling of "already modeled" rows when showing multiple methods
2 parents 043cdab + eb42bee commit 8d33693

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

extensions/ql-vscode/src/view/model-editor/MethodRow.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,17 +327,19 @@ const UnmodelableMethodRow = forwardRef<
327327
<DataGridCell>
328328
<ApiOrMethodRow>
329329
<ModelingStatusIndicator status="saved" />
330+
<MethodClassifications method={method} />
330331
<MethodName {...props.method} />
331332
{viewState.mode === Mode.Application && (
332333
<UsagesButton onClick={jumpToMethod}>
333334
{method.usages.length}
334335
</UsagesButton>
335336
)}
336337
<ViewLink onClick={jumpToMethod}>View</ViewLink>
337-
<MethodClassifications method={method} />
338338
</ApiOrMethodRow>
339339
</DataGridCell>
340-
<DataGridCell gridColumn="span 4">Method already modeled</DataGridCell>
340+
<DataGridCell gridColumn={`span ${viewState.showMultipleModels ? 5 : 4}`}>
341+
Method already modeled
342+
</DataGridCell>
341343
</DataGridRow>
342344
);
343345
});

0 commit comments

Comments
 (0)