Skip to content

response-area-height doesn't appear to have any effect #768

@colvinco

Description

@colvinco

Hello,

https://rapidocweb.com/api.html#att-layout describes response-area-height as follows:

response-area-height Allowed: valid css height value such as 400px, 50%, 60vh etc - Use this value to control the height of response textarea 300px

It was added for #110 , but it doesn't appear to do anything

Looking through the source, it is picked up:

  1. responseAreaHeight: { type: String, attribute: 'response-area-height' } - https://github.com/rapi-doc/RapiDoc/blob/master/src/rapidoc.js#L64
  2. --resp-area-height: ${this.responseAreaHeight}; - https://github.com/rapi-doc/RapiDoc/blob/master/src/utils/theme.js#L208
.multiline {
    overflow: scroll;
    max-height: var(--resp-area-height, 300px);
    color: var(--fg3);
}

https://github.com/rapi-doc/RapiDoc/blob/master/src/styles/font-styles.js#L43

However multiline doesn't appear to be used as a class on the response areas (or anywhere else?). If I apply the multiline class to a response area then the setting does limit the height as expected.

Am I missing something or is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions