mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-09 06:55:03 +00:00
* style: enhance button layout and input styles across multiple components for improved UI consistency * style: update RequestsNotLoaded component with new warning styles and enhance theme color definitions for status indicators * refactor: update theme usage across components for consistency - Changed color references from theme.brand to theme.primary.text in various StyledWrapper components. - Added hover effects to enhance UI interactivity in CollectionSettings and FolderSettings. - Removed unnecessary margin and padding adjustments in several components for cleaner layout. - Improved accessibility by ensuring aria attributes are correctly set in MenuDropdown. - Standardized styling for method indicators in RequestPane components. These changes aim to create a more cohesive look and feel across the application while adhering to the updated theme guidelines. * refactor: clean up method selector styling in NewRequest component * chore: temp playwright test fixes * refactor: update modal sizes across various components for consistency - Changed modal size from "sm" to "md" in RenameWorkspace, CreateApiSpec, CloneCollection, DeleteCollectionItem, and RenameCollection components. - Improved styling in HttpMethodSelector by adding padding for better layout. - Updated theme color references in multiple theme files to use a new palette structure for consistency and maintainability. * refactor: enhance styling and theme integration in TimelineItem components - Updated HttpMethodSelector to clarify padding calculation in comments. - Integrated theme colors for OAuth2 indicator and timestamp in TimelineItem for better visual consistency. - Adjusted Method component to use uppercase styling for method display. - Modified RelativeTime component to apply muted text color for improved readability. - Updated INFO color in dark and light themes for better contrast and accessibility. * refactor: remove duplicate import statements in theme files - Cleaned up import statements in vscode.js and light-pastel.js by removing redundant lines for improved code clarity and maintainability. * refactor: improve styling and theme integration in various components - Added accent color and cursor style for checkbox inputs in Modal's StyledWrapper. - Updated border-radius values in HttpMethodSelector and NewRequest StyledWrapper components to use theme variables for consistency. - Introduced a new textbox class in NewRequest StyledWrapper for better styling control. - Changed modal size from "sm" to "md" in CreateEnvironment for improved layout. --------- Co-authored-by: Bijin A B <bijin@usebruno.com>
130 lines
2.3 KiB
JavaScript
130 lines
2.3 KiB
JavaScript
import styled from 'styled-components';
|
|
|
|
const Wrapper = styled.div`
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
height: 100%;
|
|
position: relative;
|
|
|
|
.messages-container {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
&.single {
|
|
height: 100%;
|
|
}
|
|
|
|
&.multi {
|
|
overflow-y: auto;
|
|
padding-bottom: 48px;
|
|
}
|
|
}
|
|
|
|
.message-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
&.single {
|
|
height: 100%;
|
|
|
|
.editor-container {
|
|
height: calc(100% - 32px);
|
|
}
|
|
}
|
|
|
|
&:not(.single) {
|
|
min-height: 240px;
|
|
margin-bottom: 8px;
|
|
|
|
&.last {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.message-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 4px;
|
|
padding: 4px 0px;
|
|
padding-top: 0px;
|
|
height: 32px;
|
|
flex-shrink: 0;
|
|
|
|
.message-label {
|
|
font-size: ${(props) => props.theme.font.size.sm};
|
|
color: ${(props) => props.theme.colors.text.subtext1};
|
|
margin-right: auto;
|
|
}
|
|
|
|
.toolbar-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
}
|
|
|
|
.toolbar-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 4px;
|
|
color: ${(props) => props.theme.colors.text.muted};
|
|
transition: all 0.15s ease;
|
|
|
|
&:hover {
|
|
background-color: ${(props) => props.theme.dropdown.hoverBg};
|
|
color: ${(props) => props.theme.text};
|
|
}
|
|
|
|
&.disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
|
|
&:hover {
|
|
background-color: transparent;
|
|
color: ${(props) => props.theme.colors.text.muted};
|
|
}
|
|
}
|
|
|
|
&.delete:hover {
|
|
color: ${(props) => props.theme.colors.text.danger};
|
|
}
|
|
}
|
|
}
|
|
|
|
.editor-container {
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
gap: 12px;
|
|
|
|
p {
|
|
color: ${(props) => props.theme.colors.text.muted};
|
|
font-size: 13px;
|
|
}
|
|
}
|
|
|
|
.add-message-footer {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 8px;
|
|
background: ${(props) => props.theme.bg};
|
|
}
|
|
`;
|
|
|
|
export default Wrapper;
|