Skip to content

Commit

Permalink
css to Update button
Browse files Browse the repository at this point in the history
  • Loading branch information
van-go committed Dec 18, 2023
1 parent 8817b42 commit 0bc4814
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@
composes: c-button--secondary from '../../../styles/components/c-button.css';
}

.ownership-button {
margin-left: 5px;
}

div > .project-role-selector {
height: auto; /* overwrite .form-control height to accommodate dropdown selector next to small button in this instance */
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useSelector } from 'react-redux';
import Cookies from 'js-cookie';
import fetch from 'cross-fetch';
import DropdownSelector from '_common/DropdownSelector';
import { Button } from 'reactstrap';
import { Button } from '_common';
import styles from '../DataFilesProjectMembers.module.scss';
import LoadingSpinner from '_common/LoadingSpinner';

Expand Down Expand Up @@ -109,7 +109,8 @@ const SystemRoleSelector = ({ projectId, username }) => {
</DropdownSelector>
{data.role !== selectedRole && !isFetching && (
<Button
style={{ marginLeft: '5px' }}
type="secondary"
size="small"
className={styles['ownership-button']}
onClick={() => setSystemRole(selectedRole)}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const DataFilesToolbar = ({ scheme, api }) => {
const reloadPage = () => {
history.push(location.pathname);
};

const systemList = useSelector(
(state) => state.systems.storage.configuration.filter((s) => !s.hidden),
shallowEqual
Expand Down

0 comments on commit 0bc4814

Please sign in to comment.