Github user garrensmith commented on a diff in the pull request:

    https://github.com/apache/couchdb-fauxton/pull/741#discussion_r69899239
  
    --- Diff: app/addons/documents/doc-editor/components.react.jsx ---
    @@ -218,44 +218,137 @@ var AttachmentsPanelButton = React.createClass({
         };
       },
     
    +  getInitialState: function () {
    +    return {
    +      filter: '',
    +      maxHeight: 'none'
    +    };
    +  },
    +
    +  componentDidMount: function () {
    +    $(window).on('resize.attachment-filter', this.updateMaxHeight);
    +    Stores.attachmentFilterStore.on('change', this.onChange);
    +  },
    +
    +  componentWillUnmount: function () {
    +    $(window).off('resize.attachment-filter', this.updateMaxHeight);
    --- End diff --
    
    I think we could probably resize the attachment list using media queries. 
I'm guessing you want to limit how many attachments are visible depending on 
the screensize. If that is the case I would prefer a css solution to this. 
@robertkowalski might be able to recommend an approach.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to