Skip to content

Commit

Permalink
Merge branch 'main' into feat/sierra-single-step-debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jaipaljadeja committed Apr 24, 2024
2 parents 7c891ad + 51e8c75 commit 5923b4a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/Editor/ExtraColumn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const ExtraColumn = ({
} = useContext(CairoVMApiContext)

return (
<div className="w-full md:w-1/3 flex flex-col">
<div className="w-full md:w-1/3 hidden md:flex flex-col">
<div className="border-b border-gray-200 dark:border-black-500 flex items-center pl-6 pr-2 h-14 md:border-r flex-none">
<Header
codeType={codeType}
Expand Down
1 change: 1 addition & 0 deletions components/Editor/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const EditorHeader = ({

<div className="flex items-center ">
<Select
className="z-50"
onChange={onCodeTypeChange}
options={codeLangOptions}
value={codeTypeValue}
Expand Down
9 changes: 6 additions & 3 deletions components/Editor/InstructionsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ const TableRow = (props: any) => {
const isError = errorIndexes.includes(rest?.['data-item-index'])
return (
<tr
className={cn('border-b border-gray-200 dark:border-black-500', {
className={cn('border-b border-gray-200 dark:border-black-500 w-full', {
'text-gray-900 dark:text-gray-200': isActive,
'text-gray-400 dark:text-gray-600': !isActive,
'bg-red-100 dark:bg-red-500/10': isError,
Expand Down Expand Up @@ -231,10 +231,13 @@ const TableRowContent = memo(
}) => {
return (
<>
<td className={`pl-6 pr-1 px-2 whitespace-nowrap w-[1%]`}>
<td className={`pl-6 pr-1 whitespace-nowrap`} style={{ width: '3rem' }}>
{index + 1}
</td>
<td className="py-1 px-2 max-w-40 break-words">
<td
className="py-1 px-2 break-normal sm:break-all lg:break-normal"
style={{ maxWidth: '10rem' }}
>
{isActive && codeType === CodeType.Sierra
? addVariableToolTipToSierraInstruction(instruction.name)
: splitInLines(instruction.name)}
Expand Down
2 changes: 1 addition & 1 deletion components/Tracer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export const Tracer = () => {
/>
)}

<div className="border-gray-200 border-t dark:border-black-500 flex-none overflow-hidden mb-[10px] h-[22vh]">
<div className="border-gray-200 border-t dark:border-black-500 flex-none mb-[10px] h-[22vh]">
<div className="px-4">
<nav className="-mb-px uppercase flex space-x-8" aria-label="Tabs">
<button
Expand Down
5 changes: 4 additions & 1 deletion components/layouts/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ const Nav = () => {
></ul>

<div className="items-center ml-auto flex">
<KBarButton />
<div className="md:block hidden">
<KBarButton />
</div>

<NavLink href={GITHUB_REPO_URL} external className="mx-2 md:mx-4">
GitHub
</NavLink>
Expand Down

0 comments on commit 5923b4a

Please sign in to comment.