Merge pull request #3008 from github/robertbrignull/modeled_row_styling

Fix styling of "already modeled" rows when showing multiple methods
This commit is contained in:
Robert
2023-10-24 14:13:18 +01:00
committed by GitHub

View File

@@ -327,6 +327,7 @@ const UnmodelableMethodRow = forwardRef<
<DataGridCell>
<ApiOrMethodRow>
<ModelingStatusIndicator status="saved" />
<MethodClassifications method={method} />
<MethodName {...props.method} />
{viewState.mode === Mode.Application && (
<UsagesButton onClick={jumpToMethod}>
@@ -334,10 +335,11 @@ const UnmodelableMethodRow = forwardRef<
</UsagesButton>
)}
<ViewLink onClick={jumpToMethod}>View</ViewLink>
<MethodClassifications method={method} />
</ApiOrMethodRow>
</DataGridCell>
<DataGridCell gridColumn="span 4">Method already modeled</DataGridCell>
<DataGridCell gridColumn={`span ${viewState.showMultipleModels ? 5 : 4}`}>
Method already modeled
</DataGridCell>
</DataGridRow>
);
});