Skip to content

Commit 8fa9ec7

Browse files
carlinmackzzacharo
authored andcommitted
UI: change button icon and text
* smaller action buttons * match record request link to the one in modal * increase size of community icon
1 parent feb1175 commit 8fa9ec7

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ManageDefaultBrandingAction/ManageDefaultBrandingAction.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class ManageDefaultBrandingAction extends Component {
5757
<Popup
5858
trigger={
5959
<Button
60-
size="tiny"
60+
size="mini"
6161
labelPosition="left"
6262
icon="paint brush"
6363
floated="right"
@@ -81,7 +81,7 @@ export class ManageDefaultBrandingAction extends Component {
8181
<Popup
8282
trigger={
8383
<Button
84-
size="tiny"
84+
size="mini"
8585
labelPosition="left"
8686
icon="paint brush"
8787
floated="right"
@@ -111,7 +111,7 @@ export class ManageDefaultBrandingAction extends Component {
111111
negative
112112
floated="right"
113113
className="community-branding-error"
114-
size="tiny"
114+
size="mini"
115115
>
116116
{error}
117117
</Message>

invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCommunitiesList.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import PropTypes from "prop-types";
1111
import React, { Component } from "react";
1212
import { Image } from "react-invenio-forms";
1313
import {
14-
Button,
1514
Grid,
1615
Item,
1716
Message,
@@ -63,10 +62,10 @@ export class RecordCommunitiesList extends Component {
6362
return (
6463
<Grid key={community.id}>
6564
<Grid.Row verticalAlign="middle">
66-
<Grid.Column width={2}>
65+
<Grid.Column width={3}>
6766
<Image wrapped size="mini" src={community.links.logo} alt="" />
6867
</Grid.Column>
69-
<Grid.Column width={viewRequest ? 8 : 14}>
68+
<Grid.Column width={13} className="pl-0">
7069
<Item.Content>
7170
<Item.Header className="ui">
7271
<Header as="a" href={community.links.self_html} size="small">
@@ -97,27 +96,28 @@ export class RecordCommunitiesList extends Component {
9796
</a>
9897
</HeaderSubheader>
9998
)}
99+
{viewRequest && (
100+
<div>
101+
<small>
102+
<b>
103+
<a
104+
// building request link as the self_html of the request is
105+
// /requests/<uuid> which doesn't resolve as missing
106+
// /communities/ or /me/. We prefer /communities/ here
107+
href={`${community.links.self_html}requests/${
108+
recordRequests[community.id]
109+
}`}
110+
>
111+
<Icon name="discussions" className="mr-5" />
112+
{i18next.t("View comments")}
113+
</a>
114+
</b>
115+
</small>
116+
</div>
117+
)}
100118
</Item.Header>
101119
</Item.Content>
102120
</Grid.Column>
103-
{viewRequest && (
104-
<Grid.Column width={6}>
105-
<Button
106-
basic
107-
compact
108-
size="mini"
109-
floated="right"
110-
icon="eye"
111-
content={i18next.t("Request")}
112-
// building request link as the self_html of the request is
113-
// /requests/<uuid> which doesn't resolve as missing
114-
// /communities/ or /me/. We prefer /communities/ here
115-
href={`${community.links.self_html}requests/${
116-
recordRequests[community.id]
117-
}`}
118-
/>
119-
</Grid.Column>
120-
)}
121121
</Grid.Row>
122122
</Grid>
123123
);

invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RemoveFromCommunity/RemoveFromCommunityAction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class RemoveFromCommunityAction extends Component {
9191
return (
9292
<>
9393
<Button
94-
size="tiny"
94+
size="mini"
9595
negative
9696
labelPosition="left"
9797
icon="trash"

0 commit comments

Comments
 (0)