Skip to content

Disable/Remove scroll when in full screen mode#1586

Merged
arraydude merged 4 commits intostreamlit:developfrom
arraydude:1168/imgFullScreen
Jun 17, 2020
Merged

Disable/Remove scroll when in full screen mode#1586
arraydude merged 4 commits intostreamlit:developfrom
arraydude:1168/imgFullScreen

Conversation

@arraydude
Copy link
Copy Markdown
Contributor

Issue: This PR fixes #1168

Description:
When fullscreen:

  • Adding object-fit: contain
  • Hiding caption

When not fullscreen: remains the same


Contribution License Agreement

By submiting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@arraydude arraydude requested a review from a team as a code owner June 15, 2020 21:57

export interface Props {
width: number
height?: number
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I would prefer keeping the props sorted, though we don't have a rule for that. Let me know what you think.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sorted in which way? but yes I'm agree

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

alphabetically?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Should I add a task for that?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Dissenting opinion: I don't think "alphabetical sorting" is a good policy for props, member variables, and what-have-you. There's often a more meaningful semantic sorting that the author imparts.

@arraydude arraydude merged commit 769f4e1 into streamlit:develop Jun 17, 2020
@arraydude arraydude deleted the 1168/imgFullScreen branch June 17, 2020 22:49
tconkling added a commit that referenced this pull request Jun 22, 2020
* develop:
  Formatting changes from `make pyformat` (#1621)
  Add config to disable CSRF + conflict check with CORS (#1571)
  MediaFile Grace Period using KEEP_DELAY = 5 seconds (#1494)
  Fix server.cookieSecret config option. (#1603)
  Create a config option to toggle websocket compression (#1544)
  Remove Python 2 and Python 3.5 staleness (#1600)
  Disable/Remove scroll when in full screen mode (#1586)
  Better welcome message when running `streamlit hello` (#1585)
  Scale image to approximate size on screen (#1594)
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.

Disable/Remove scroll when in full screen mode

3 participants