Skip to content

Commit

Permalink
added ModalSubTitle styling
Browse files Browse the repository at this point in the history
  • Loading branch information
gally47 committed Sep 29, 2022
1 parent 823eeac commit c487933
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ const ModalTitle = styled(Modal.Title)`
line-height: 1.1;
`;

const ModalSubTitle = styled.div`
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
`;

const CollectorConfigurationModal = (props) => {
const [nextAssignedConfigurations, setNextAssignedConfigurations] = React.useState([]);

Expand Down Expand Up @@ -226,7 +232,9 @@ const CollectorConfigurationModal = (props) => {
<Modal.Header>
<ModalTitle>
Edit <b>{selectedLogCollectors[0]?.name}</b> Configurations
<div><small>sidecars: {selectedSidecarCollectorPairs.map(({ sidecar }) => sidecar.node_name).join(', ')}</small></div>
<ModalSubTitle>
<small>sidecars: {selectedSidecarCollectorPairs.map(({ sidecar }) => sidecar.node_name).join(', ')}</small>
</ModalSubTitle>
</ModalTitle>
</Modal.Header>
<Modal.Body>
Expand Down

0 comments on commit c487933

Please sign in to comment.