mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-08 14:35:03 +00:00
Merge pull request #6171 from abhishek-bruno/style/update-font-size
style: updated font size to 13px using theme props.
This commit is contained in:
@@ -60,7 +60,7 @@ const CreateExampleModal = ({ isOpen, onClose, onSave, title = 'Create Response
|
||||
>
|
||||
<div className="space-y-4">
|
||||
<div>
|
||||
<label htmlFor="exampleName" className="block font-semibold">
|
||||
<label htmlFor="exampleName" className="block font-medium">
|
||||
Example Name<span className="text-red-600">*</span>
|
||||
</label>
|
||||
<input
|
||||
@@ -74,14 +74,14 @@ const CreateExampleModal = ({ isOpen, onClose, onSave, title = 'Create Response
|
||||
data-testid="create-example-name-input"
|
||||
/>
|
||||
{nameError && (
|
||||
<div className="text-red-500 text-sm mt-1" data-testid="name-error">
|
||||
<div className="text-red-500 mt-1" data-testid="name-error">
|
||||
{nameError}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label htmlFor="exampleDescription" className="block font-semibold">
|
||||
<label htmlFor="exampleDescription" className="block font-medium">
|
||||
Description
|
||||
</label>
|
||||
<textarea
|
||||
|
||||
@@ -10,7 +10,7 @@ const StyledWrapper = styled.div`
|
||||
color: ${(props) => props.theme.text};
|
||||
}
|
||||
|
||||
font-size: 0.8125rem;
|
||||
font-size: ${(props) => props.theme.font.size.base};
|
||||
|
||||
.body-mode-selector {
|
||||
background: transparent;
|
||||
|
||||
@@ -51,7 +51,7 @@ const ResponseExampleBodyRenderer = ({
|
||||
switch (bodyMode) {
|
||||
case 'none':
|
||||
return (
|
||||
<div className="text-sm no-body-text">
|
||||
<div className="no-body-text">
|
||||
No Body
|
||||
</div>
|
||||
);
|
||||
@@ -91,7 +91,7 @@ const ResponseExampleBodyRenderer = ({
|
||||
|
||||
default:
|
||||
return (
|
||||
<div className="text-sm no-body-text">
|
||||
<div className="no-body-text">
|
||||
No Body
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -5,7 +5,7 @@ const StyledWrapper = styled.div`
|
||||
background-color: transparent;
|
||||
color: ${(props) => props.theme.text};
|
||||
font-family: inherit;
|
||||
font-size: 14px;
|
||||
font-size: ${(props) => props.theme.font.size.base};
|
||||
line-height: 1.5;
|
||||
border: 1px solid transparent;
|
||||
padding: 0;
|
||||
|
||||
@@ -4,7 +4,7 @@ const Wrapper = styled.div`
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-weight: 600;
|
||||
font-weight: 500;
|
||||
table-layout: fixed;
|
||||
|
||||
thead,
|
||||
@@ -14,7 +14,7 @@ const Wrapper = styled.div`
|
||||
|
||||
thead {
|
||||
color: ${(props) => props.theme.table.thead.color};
|
||||
font-size: 0.8125rem;
|
||||
font-size: ${(props) => props.theme.font.size.base};
|
||||
user-select: none;
|
||||
}
|
||||
td {
|
||||
@@ -23,7 +23,7 @@ const Wrapper = styled.div`
|
||||
}
|
||||
|
||||
.btn-add-param {
|
||||
font-size: 0.8125rem;
|
||||
font-size: ${(props) => props.theme.font.size.base};
|
||||
}
|
||||
|
||||
input[type='text'] {
|
||||
@@ -49,7 +49,7 @@ const Wrapper = styled.div`
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
font-size: ${(props) => props.theme.font.size.sm};
|
||||
font-weight: 500;
|
||||
color: ${(props) => props.theme.colors.text.muted};
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ const Wrapper = styled.div`
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-weight: 600;
|
||||
font-weight: 500;
|
||||
table-layout: fixed;
|
||||
|
||||
thead,
|
||||
@@ -14,7 +14,7 @@ const Wrapper = styled.div`
|
||||
|
||||
thead {
|
||||
color: ${(props) => props.theme.table.thead.color};
|
||||
font-size: 0.8125rem;
|
||||
font-size: ${(props) => props.theme.font.size.base};
|
||||
user-select: none;
|
||||
}
|
||||
td {
|
||||
@@ -23,7 +23,7 @@ const Wrapper = styled.div`
|
||||
}
|
||||
|
||||
.btn-add-param {
|
||||
font-size: 0.8125rem;
|
||||
font-size: ${(props) => props.theme.font.size.base};
|
||||
}
|
||||
|
||||
input[type='text'] {
|
||||
|
||||
@@ -9,7 +9,7 @@ const StyledWrapper = styled.div`
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
font-size: ${(props) => props.theme.font.size.sm};
|
||||
font-weight: 500;
|
||||
transition: opacity 0.2s ease;
|
||||
color: ${(props) => props.theme.colors.text.muted};
|
||||
|
||||
@@ -4,7 +4,7 @@ const Wrapper = styled.div`
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-weight: 600;
|
||||
font-weight: 500;
|
||||
table-layout: fixed;
|
||||
|
||||
thead,
|
||||
@@ -14,7 +14,7 @@ const Wrapper = styled.div`
|
||||
|
||||
thead {
|
||||
color: ${(props) => props.theme.table.thead.color};
|
||||
font-size: 0.8125rem;
|
||||
font-size: ${(props) => props.theme.font.size.base};
|
||||
user-select: none;
|
||||
}
|
||||
td {
|
||||
@@ -23,7 +23,7 @@ const Wrapper = styled.div`
|
||||
}
|
||||
|
||||
.btn-add-param {
|
||||
font-size: 0.8125rem;
|
||||
font-size: ${(props) => props.theme.font.size.base};
|
||||
}
|
||||
|
||||
input[type='text'] {
|
||||
|
||||
@@ -10,7 +10,7 @@ const StyledWrapper = styled.div`
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
font-size: ${(props) => props.theme.font.size.sm};
|
||||
font-weight: 500;
|
||||
transition: opacity 0.2s ease;
|
||||
color: ${(props) => props.theme.colors.text.muted};
|
||||
@@ -31,8 +31,8 @@ const StyledWrapper = styled.div`
|
||||
|
||||
thead {
|
||||
td {
|
||||
font-weight: 600;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
font-size: ${(props) => props.theme.font.size.sm};
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
padding: 8px 0;
|
||||
|
||||
@@ -55,7 +55,7 @@ const ResponseExampleUrlBar = ({ item, collection, editMode, onSave, exampleUid
|
||||
return (
|
||||
<StyledWrapper className="flex items-center">
|
||||
<div className="url-bar-container w-full flex p-2 text-xs rounded-md items-center justify-between" data-testid="url-bar-container">
|
||||
<div className={`method flex text-xs items-center justify-center px-2 rounded h-6 flex-shrink-0 mr-2 overflow-hidden whitespace-nowrap font-semibold uppercase ${getMethodClass()}`}>
|
||||
<div className={`method flex text-xs items-center justify-center px-2 rounded h-6 flex-shrink-0 mr-2 overflow-hidden whitespace-nowrap font-medium uppercase ${getMethodClass()}`}>
|
||||
{method || 'GET'}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import styled from 'styled-components';
|
||||
|
||||
const StyledWrapper = styled.div`
|
||||
font-size: 0.8125rem;
|
||||
font-size: ${(props) => props.theme.font.size.base};
|
||||
height: 300px;
|
||||
|
||||
.body-mode-selector {
|
||||
|
||||
@@ -6,7 +6,7 @@ const StyledWrapper = styled.div`
|
||||
color: ${(props) => props.theme.colors.text.muted};
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
font-size: ${(props) => props.theme.font.size.sm};
|
||||
font-weight: 500;
|
||||
transition: opacity 0.2s ease;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ const StyledWrapper = styled.div`
|
||||
border: 1px solid ${(props) => props.theme.modal.input.border};
|
||||
border-radius: 3px;
|
||||
padding: 0.35rem 0.6rem;
|
||||
font-size: 0.8125rem;
|
||||
font-size: ${(props) => props.theme.font.size.base};
|
||||
font-weight: 500;
|
||||
color: ${(props) => props.theme.text.primary};
|
||||
min-width: 120px;
|
||||
@@ -60,7 +60,7 @@ const StyledWrapper = styled.div`
|
||||
margin: 0;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.15s ease;
|
||||
font-size: 0.8125rem;
|
||||
font-size: ${(props) => props.theme.font.size.base};
|
||||
color: ${(props) => props.theme.dropdown.primaryText};
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
@@ -70,7 +70,7 @@ const StyledWrapper = styled.div`
|
||||
}
|
||||
|
||||
.status {
|
||||
font-weight: 600;
|
||||
font-weight: 500;
|
||||
color: inherit;
|
||||
margin-right: 0.5rem;
|
||||
min-width: 40px;
|
||||
|
||||
@@ -34,7 +34,7 @@ const StyledWrapper = styled.div`
|
||||
|
||||
.example-input-label {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
font-size: ${(props) => props.theme.font.size.base};
|
||||
font-weight: 500;
|
||||
color: ${(props) => props.theme.text};
|
||||
margin-bottom: 4px;
|
||||
@@ -48,7 +48,7 @@ const StyledWrapper = styled.div`
|
||||
background-color: transparent;
|
||||
color: ${(props) => props.theme.text};
|
||||
font-family: inherit;
|
||||
font-size: 14px;
|
||||
font-size: ${(props) => props.theme.font.size.base};
|
||||
line-height: 1.5;
|
||||
transition: all 0.2s ease;
|
||||
outline: none;
|
||||
@@ -74,7 +74,7 @@ const StyledWrapper = styled.div`
|
||||
}
|
||||
|
||||
.example-input-description {
|
||||
font-size: 0.875rem;
|
||||
font-size: ${(props) => props.theme.font.size.base};
|
||||
line-height: 1.6;
|
||||
resize: none;
|
||||
min-height: 80px;
|
||||
|
||||
@@ -156,9 +156,9 @@ const ResponseExampleTopBar = ({
|
||||
return (
|
||||
<StyledWrapper className="p-4">
|
||||
<div className="max-w-full">
|
||||
<div className="flex items-start justify-between gap-6 md:flex-row flex-col">
|
||||
<div className="flex items-center justify-between gap-6 md:flex-row flex-col">
|
||||
<div className="flex-1 min-w-0">
|
||||
<h2 className="response-example-title font-semibold mb-2 leading-tight" data-testid="response-example-title">
|
||||
<h2 className="response-example-title font-medium leading-tight" data-testid="response-example-title">
|
||||
<span className="opacity-60">{item.name}</span>
|
||||
{' / '}
|
||||
<span>{example.name}</span>
|
||||
@@ -168,7 +168,7 @@ const ResponseExampleTopBar = ({
|
||||
text={example.description}
|
||||
maxLines={2}
|
||||
className="response-example-description-container"
|
||||
textClassName="response-example-description text-sm leading-relaxed max-w-fit"
|
||||
textClassName="response-example-description leading-relaxed max-w-fit"
|
||||
buttonClassName="text-blue-600 hover:text-blue-800 font-medium"
|
||||
viewMoreText="View More"
|
||||
viewLessText="View Less"
|
||||
|
||||
Reference in New Issue
Block a user