mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 09:48:51 -03:30
Do not truncate strings on activity stream dropdown (#12020)
Do not truncate strings on activity stream dropdown See: https://github.com/ansible/awx/issues/11399
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
import React, { useState, useEffect, useCallback } from 'react';
|
import React, { useState, useEffect, useCallback } from 'react';
|
||||||
import { useLocation, useHistory } from 'react-router-dom';
|
import { useLocation, useHistory } from 'react-router-dom';
|
||||||
|
import styled from 'styled-components';
|
||||||
import { t } from '@lingui/macro';
|
import { t } from '@lingui/macro';
|
||||||
import {
|
import {
|
||||||
Card,
|
Card,
|
||||||
PageSection,
|
PageSection,
|
||||||
PageSectionVariants,
|
PageSectionVariants,
|
||||||
SelectGroup,
|
SelectGroup,
|
||||||
Select,
|
Select as PFSelect,
|
||||||
SelectVariant,
|
SelectVariant,
|
||||||
SelectOption,
|
SelectOption,
|
||||||
Title,
|
Title,
|
||||||
@@ -26,6 +26,14 @@ import { ActivityStreamAPI } from 'api';
|
|||||||
|
|
||||||
import ActivityStreamListItem from './ActivityStreamListItem';
|
import ActivityStreamListItem from './ActivityStreamListItem';
|
||||||
|
|
||||||
|
const Select = styled(PFSelect)`
|
||||||
|
&& {
|
||||||
|
width: auto;
|
||||||
|
white-space: nowrap;
|
||||||
|
max-height: 480px;
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
function ActivityStream() {
|
function ActivityStream() {
|
||||||
const { light } = PageSectionVariants;
|
const { light } = PageSectionVariants;
|
||||||
|
|
||||||
@@ -116,8 +124,6 @@ function ActivityStream() {
|
|||||||
{t`Activity Stream type selector`}
|
{t`Activity Stream type selector`}
|
||||||
</span>
|
</span>
|
||||||
<Select
|
<Select
|
||||||
width="250px"
|
|
||||||
maxHeight="480px"
|
|
||||||
variant={SelectVariant.single}
|
variant={SelectVariant.single}
|
||||||
aria-labelledby="grouped-type-select-id"
|
aria-labelledby="grouped-type-select-id"
|
||||||
typeAheadAriaLabel={t`Select an activity type`}
|
typeAheadAriaLabel={t`Select an activity type`}
|
||||||
|
|||||||
Reference in New Issue
Block a user