fix: codepane and response copy download button overflow issue

This commit is contained in:
Ashita Prasad
2023-10-02 14:27:43 +05:30
parent 461f1aedd7
commit dc647dc991
2 changed files with 4 additions and 4 deletions

View File

@ -78,7 +78,7 @@ const kTabAnimationDuration = Duration(milliseconds: 200);
const kTabHeight = 45.0;
const kHeaderHeight = 32.0;
const kSegmentHeight = 24.0;
const kTextButtonMinWidth = 36.0;
const kTextButtonMinWidth = 44.0;
const kRandMax = 100000;
@ -231,7 +231,7 @@ const kDefaultHttpMethod = HTTPVerb.get;
const kDefaultContentType = ContentType.json;
enum CodegenLanguage {
har("HAR", "json", "json"),
har("HAR", "json", "har"),
dartHttp("Dart (http)", "dart", "dart"),
kotlinOkHttp("Kotlin (okhttp3)", "java", "kt"),
pythonHttpClient("Python (http.client)", "python", "py"),

View File

@ -5,7 +5,7 @@ bool showButtonLabelsInBodySuccess(int options, double maxWidth) {
case 1:
return (maxWidth < 300) ? false : true;
case 2:
return (maxWidth < 400) ? false : true;
return (maxWidth < 430) ? false : true;
case 3:
return (maxWidth < 500) ? false : true;
default:
@ -14,5 +14,5 @@ bool showButtonLabelsInBodySuccess(int options, double maxWidth) {
}
bool showButtonLabelsInViewCodePane(double maxWidth) {
return (maxWidth < 400) ? false : true;
return (maxWidth < 450) ? false : true;
}