Skip to content

Commit 742e197

Browse files
authored
[ENG-2641] 21.1.0/read card read only width (#1163)
* Make read-only contributors a proper width * Modify mirage scenario to have contributors and be read-write for current user
1 parent e162654 commit 742e197

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/osf-components/addon/components/contributors/card/readonly/styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
.CardSection {
1010
composes: CardSection from '../styles.scss';
11-
max-width: 34%;
11+
width: 34%;
1212
}
1313

1414
.CardSectionSmall {

mirage/scenarios/default.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,9 @@ function registrationScenario(
180180
registrationResponses,
181181
branchedFrom: rootNode,
182182
license: licenseReqFields,
183+
currentUserPermissions: [Permission.Read, Permission.Write],
183184
provider,
184-
});
185+
}, 'withContributors');
185186

186187
const clinicalTrials = server.create('external-provider', {
187188
shareSource: 'ClinicalTrials.gov',

0 commit comments

Comments
 (0)