Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: remove access column header#2976

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
AbhineetJain merged 2 commits intomainfromabhineetjain/2974-remove-access-column
Jul 14, 2022

Conversation

AbhineetJain
Copy link
Contributor

This PR removes the Access column header on the workspace page and aligns the access buttons to the right of the table row.

Additionally, we also remove the table column border when the resource does not have an agent.

Subtasks

  • Remove Access table heading
  • Right align access buttons
  • Remove border from table column when no agents are present

Screenshot

Screen Shot 2022-07-13 at 12 23 26 PM

Fixes#2974

@AbhineetJainAbhineetJain requested a review froma team as acode ownerJuly 13, 2022 19:23
@AbhineetJain
Copy link
ContributorAuthor

Interestingly, Storybook isn't picking up the right alignment changes. 🤔

@BrunoQuaresma
Copy link
Collaborator

@AbhineetJain one small thing, can you make thepaddingLeft of the "Agent" column the same as the "Resource" column?

AbhineetJain reacted with thumbs up emoji

@@ -184,5 +183,6 @@ const useStyles = makeStyles((theme) => ({
display: "flex",
gap: theme.spacing(0.5),
flexWrap: "wrap",
justifyContent: "right",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think you should useflex-end. I think "right" is not well supported. This should be the reason for Chromatic getting different styles.

AbhineetJain reacted with thumbs up emoji
@@ -80,7 +79,7 @@ export const Resources: FC<ResourcesProps> = ({
if (!agent) {
return (
<TableRow key={`${resource.id}-${agentIndex}`}>
<TableCell className={styles.resourceNameCell}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Can you check if we are using this anywhere else? If not, I think we should remove theresourceNameCell from themakeStyles.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

We're using it to show the border when agents exist. Removed it from the case when no agents exist.

Copy link
Collaborator

@BrunoQuaresmaBrunoQuaresma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM, just minor stuff before the merge.

@AbhineetJainAbhineetJain merged commitbf1af21 intomainJul 14, 2022
@AbhineetJainAbhineetJain deleted the abhineetjain/2974-remove-access-column branchJuly 14, 2022 00:59
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@BrunoQuaresmaBrunoQuaresmaBrunoQuaresma approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Remove the Access column and right align the access buttons
2 participants
@AbhineetJain@BrunoQuaresma

[8]ページ先頭

©2009-2025 Movatter.jp