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

Resources tab bug fixes #21556

Merged
merged 3 commits into from
Mar 30, 2018
Merged

Resources tab bug fixes #21556

merged 3 commits into from
Mar 30, 2018

Conversation

epeach
Copy link

@epeach epeach commented Mar 29, 2018

Fixes two bug requests for the dialog that pops up when you click on a resource in the resources tab.

  1. Set the height/width to be consistent with the dialog used for pop-up videos.
  2. Enable scrolling in the dialog.

screenshot from 2018-03-29 15-15-31

@epeach epeach requested a review from caleybrock March 29, 2018 21:16
Copy link
Contributor

@caleybrock caleybrock left a comment

Choose a reason for hiding this comment

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

Chatted offline. The negative margin is a bit odd, and it'd be preferable to use the same component that gets pulled up via documentation blocks, that way you don't have to worry about styling. Don't want to de-rail you too much, but if it's a simple-ish change, I think it's preferable.

@@ -4,6 +4,8 @@ import color from '@cdo/apps/util/color';
import BaseDialog from '../BaseDialog';
import FontAwesome from '@cdo/apps/templates/FontAwesome';

const dialogRatio = 0.8;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: const values at the top should be in the format DIALOG_RATIO
https://google.github.io/styleguide/javascriptguide.xml#Constants

@epeach
Copy link
Author

epeach commented Mar 29, 2018

@caleybrock PTAL - I updated it to use the Legacy Dialog per our offline discussion.

Copy link
Contributor

@caleybrock caleybrock left a comment

Choose a reason for hiding this comment

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

Can't wait to see these legacy dialogs go away, but I think this is the right move for consistency! Thanks for updating.

@epeach epeach merged commit 28c78ea into staging Mar 30, 2018
@epeach epeach deleted the resources-tab-bug-fixes branch April 3, 2018 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants