mirror of
https://github.com/foss42/apidash.git
synced 2025-09-21 04:22:50 +08:00
fix: codepane and response copy download button overflow issue
This commit is contained in:
@ -78,7 +78,7 @@ const kTabAnimationDuration = Duration(milliseconds: 200);
|
|||||||
const kTabHeight = 45.0;
|
const kTabHeight = 45.0;
|
||||||
const kHeaderHeight = 32.0;
|
const kHeaderHeight = 32.0;
|
||||||
const kSegmentHeight = 24.0;
|
const kSegmentHeight = 24.0;
|
||||||
const kTextButtonMinWidth = 36.0;
|
const kTextButtonMinWidth = 44.0;
|
||||||
|
|
||||||
const kRandMax = 100000;
|
const kRandMax = 100000;
|
||||||
|
|
||||||
@ -231,7 +231,7 @@ const kDefaultHttpMethod = HTTPVerb.get;
|
|||||||
const kDefaultContentType = ContentType.json;
|
const kDefaultContentType = ContentType.json;
|
||||||
|
|
||||||
enum CodegenLanguage {
|
enum CodegenLanguage {
|
||||||
har("HAR", "json", "json"),
|
har("HAR", "json", "har"),
|
||||||
dartHttp("Dart (http)", "dart", "dart"),
|
dartHttp("Dart (http)", "dart", "dart"),
|
||||||
kotlinOkHttp("Kotlin (okhttp3)", "java", "kt"),
|
kotlinOkHttp("Kotlin (okhttp3)", "java", "kt"),
|
||||||
pythonHttpClient("Python (http.client)", "python", "py"),
|
pythonHttpClient("Python (http.client)", "python", "py"),
|
||||||
|
@ -5,7 +5,7 @@ bool showButtonLabelsInBodySuccess(int options, double maxWidth) {
|
|||||||
case 1:
|
case 1:
|
||||||
return (maxWidth < 300) ? false : true;
|
return (maxWidth < 300) ? false : true;
|
||||||
case 2:
|
case 2:
|
||||||
return (maxWidth < 400) ? false : true;
|
return (maxWidth < 430) ? false : true;
|
||||||
case 3:
|
case 3:
|
||||||
return (maxWidth < 500) ? false : true;
|
return (maxWidth < 500) ? false : true;
|
||||||
default:
|
default:
|
||||||
@ -14,5 +14,5 @@ bool showButtonLabelsInBodySuccess(int options, double maxWidth) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool showButtonLabelsInViewCodePane(double maxWidth) {
|
bool showButtonLabelsInViewCodePane(double maxWidth) {
|
||||||
return (maxWidth < 400) ? false : true;
|
return (maxWidth < 450) ? false : true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user