Skip to content

Commit 527880d

Browse files
committed
dropdown font
1 parent 20ba9ae commit 527880d

File tree

6 files changed

+16
-8
lines changed

6 files changed

+16
-8
lines changed

apps/circuit-compiler/src/app/components/versions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function VersionList ({ currentVersion, versionList, downloadList, setVer
88
return (
99
<Dropdown>
1010
<Dropdown.Toggle as={CircomVersionMenuToggle} id="circomVersionList" className="btn btn-light btn-block w-100 d-inline-block border form-select">
11-
<div style={{ flexGrow: 1, overflow: 'hidden', display:'flex', justifyContent:'left' }}>
11+
<div className="font-sm" style={{ flexGrow: 1, overflow: 'hidden', display:'flex', justifyContent:'left' }}>
1212
{ versionList[currentVersion].name }
1313
</div>
1414
</Dropdown.Toggle>

apps/contract-verification/src/app/components/SearchableChainDropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const CustomToggle = React.forwardRef(
4141
className={className.replace('dropdown-toggle', '')}
4242
>
4343
<div className="d-flex">
44-
<div className="me-auto text-nowrap text-truncate overflow-hidden" data-id={`dropdown-content`}>{children}</div>
44+
<div className="me-auto text-nowrap text-truncate overflow-hidden font-sm" data-id={`dropdown-content`}>{children}</div>
4545
{icon && (
4646
<div className="pe-1">
4747
<i className={`${icon} pe-1`}></i>

apps/remix-ide/src/assets/css/themes/remix-dark_tvx1s2.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@ body {
249249
color: var(--custom-ai-color) !important;
250250
}
251251

252+
.font-sm {
253+
font-size: 0.875em;
254+
}
255+
252256
hr {
253257
margin: 1rem 0;
254258
color: inherit;
@@ -2355,7 +2359,7 @@ textarea.form-control-lg {
23552359
display: block;
23562360
width: 100%;
23572361
padding: 0.375rem 2.25rem 0.375rem 0.75rem;
2358-
font-size: 1rem;
2362+
font-size: .875rem;
23592363
font-weight: 400;
23602364
line-height: 1.5;
23612365
color: #fff;
@@ -3474,7 +3478,7 @@ textarea.form-control-lg {
34743478
--bs-dropdown-padding-x: 0;
34753479
--bs-dropdown-padding-y: 0.5rem;
34763480
--bs-dropdown-spacer: 0.125rem;
3477-
--bs-dropdown-font-size: 1rem;
3481+
--bs-dropdown-font-size: .875rem;
34783482
--bs-dropdown-color: var(--bs-body-color);
34793483
--bs-dropdown-bg: var(--custom-onsurface-layer-1);
34803484
--bs-dropdown-border-color: #444;

apps/remix-ide/src/assets/css/themes/remix-light_powaqg.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,10 @@ body {
234234
color: var(--custom-ai-color) !important;
235235
}
236236

237+
.font-sm {
238+
font-size: 0.875em;
239+
}
240+
237241
hr {
238242
margin: 1rem 0;
239243
color: inherit;
@@ -2338,7 +2342,7 @@ textarea.form-control-lg {
23382342
display: block;
23392343
width: 100%;
23402344
padding: 0.375rem 2.25rem 0.375rem 0.75rem;
2341-
font-size: 1rem;
2345+
font-size: .875rem;
23422346
font-weight: 400;
23432347
line-height: 1.5;
23442348
color: var(--bs-body-color);
@@ -3455,7 +3459,7 @@ textarea.form-control-lg {
34553459
--bs-dropdown-padding-x: 0;
34563460
--bs-dropdown-padding-y: 0.5rem;
34573461
--bs-dropdown-spacer: 0.125rem;
3458-
--bs-dropdown-font-size: 1rem;
3462+
--bs-dropdown-font-size: .875rem;
34593463
--bs-dropdown-color: var(--bs-body-color);
34603464
--bs-dropdown-bg: var(--bs-body-bg);
34613465
--bs-dropdown-border-color: #ced4da;

libs/remix-ui/helper/src/lib/components/custom-dropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const CustomToggle = React.forwardRef(
2929
className={className.replace('dropdown-toggle', '')}
3030
>
3131
<div className="d-flex align-items-center">
32-
<div className="me-auto text-nowrap text-truncate overflow-hidden" data-id={`dropdown-content`}>{children}</div>
32+
<div className="me-auto text-nowrap text-truncate overflow-hidden font-sm" data-id={`dropdown-content`}>{children}</div>
3333
{icon && (
3434
<div className="pe-1">
3535
<i className={`${icon} pe-1`}></i>

libs/remix-ui/solidity-compiler/src/lib/components/compiler-dropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const CompilerDropdown = (props: compilerDropdownProps) => {
2929
<Dropdown id="versionSelector" data-id="versionSelector">
3030
<Dropdown.Toggle as={CompilerMenuToggle} id="dropdown-custom-components" className="btn btn-light w-100 d-inline-block border form-select" icon={null}>
3131
<div style={{ flexGrow: 1, overflow: 'hidden', display:'flex', justifyContent:'left' }}>
32-
<div className="text-truncate">
32+
<div className="text-truncate font-sm">
3333
{customVersions.map((url, i) => {
3434
if (selectedVersion === url) return (<span data-id="selectedVersion" key={i}>custom</span>)
3535
})}

0 commit comments

Comments
 (0)