Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui: improve screen adaptability #641

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/pages/backoffice/Home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ export default class Home extends Component {
</Grid.Row>

<Grid.Row columns={2}>
<Grid.Column>
<Grid.Column tablet={16} computer={8}>
<Divider hidden />
<IdleLoansList />
<Divider hidden />
<OverdueLoansList />
<Divider hidden />
<RenewedLoansList />
</Grid.Column>
<Grid.Column>
<Grid.Column tablet={16} computer={8}>
<Divider hidden />
<OverbookedDocumentsList />
<Divider hidden />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { Grid, Item, List } from 'semantic-ui-react';
import { renderSubtitle } from '@modules/Document/utils';
import { Truncate } from '@components/Truncate';

export default class BorrowingRequestListEntry extends Component {
renderLeftColumn = (brwReqMetadata) => {
Expand Down Expand Up @@ -136,7 +137,9 @@ export default class BorrowingRequestListEntry extends Component {
data-test={`navigate-${brwReqMetadata.pid}`}
>
<ILLBorrowingRequestIcon />
{brwReqMetadata.document.title}
<Truncate lines={2} width="500px">
{brwReqMetadata.document.title}
</Truncate>
</Item.Header>
<Item.Meta>
{renderSubtitle(brwReqMetadata.document?.alternative_titles)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { Grid, Icon, Item, List } from 'semantic-ui-react';
import { Truncate } from '@components/Truncate';

const ProviderListInfo = ({ providerMetadata }) => (
<List verticalAlign="middle" className="document-circulation">
Expand Down Expand Up @@ -115,7 +116,9 @@ export default class ProviderListEntry extends Component {
data-test={`navigate-${providerMetadata.pid}`}
>
<ProviderIcon />
{providerMetadata.name}
<Truncate lines={2} width="500px">
sakshamarora1 marked this conversation as resolved.
Show resolved Hide resolved
{providerMetadata.name}
</Truncate>
</Item.Header>
<Item.Meta>
Type: <strong>{providerMetadata.type}</strong>
Expand Down
Loading