Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Oct 16, 2024
1 parent 020b8e3 commit a265378
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/cheatsheet/src/lib/cheatsheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ type CheatsheetSectionProps = {
};

const CheatsheetSection: React.FC<CheatsheetSectionProps> = ({ children }) => (
<section className=" mb-5 break-inside-avoid last:mb-0 md:mb-3 xl:mb-4">
<section className="mb-5 break-inside-avoid last:mb-0 md:mb-3 xl:mb-4">
{children}
</section>
);
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class DestinationImpl implements Destination {
this.isBefore = insertionMode === "before";
this.isLineDelimiter = target.insertionDelimiter.includes("\n");
this.indentationString =
indentationString ?? this.isLineDelimiter
(indentationString ?? this.isLineDelimiter)
? getIndentationString(target.editor, target.contentRange)
: "";
this.insertionPrefix =
Expand Down Expand Up @@ -125,8 +125,8 @@ export class DestinationImpl implements Destination {
if (this.isLineDelimiter) {
const line = this.editor.document.lineAt(insertionPosition);
const trimmedPosition = this.isBefore
? line.rangeTrimmed?.start ?? line.range.start
: line.rangeTrimmed?.end ?? line.range.end;
? (line.rangeTrimmed?.start ?? line.range.start)
: (line.rangeTrimmed?.end ?? line.range.end);

// Use the full line, including indentation and trailing whitespaces
if (insertionPosition.isEqual(trimmedPosition)) {
Expand Down
4 changes: 2 additions & 2 deletions packages/cursorless-org/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function LandingPage() {
<title>{TITLE}</title>
<IndexSocial />
</Head>
<main className="text-salmon-900 dark:text-salmon-100 font-monoWide fixed bottom-0 left-0 right-0 top-0 items-center justify-center overflow-auto p-2 font-bold tracking-[0.18em] sm:flex sm:p-0 ">
<main className="text-salmon-900 dark:text-salmon-100 font-monoWide fixed bottom-0 left-0 right-0 top-0 items-center justify-center overflow-auto p-2 font-bold tracking-[0.18em] sm:flex sm:p-0">
{/*
Note that the font scale gets applied to this element so that all nested elements can use
`em` units and will automatically be scaled.
Expand All @@ -32,7 +32,7 @@ export default function LandingPage() {
className={`flex h-full flex-col text-[10px] sm:m-auto ${smallScaling} ${stretchedScaling}`}
>
<div className="flex flex-1 flex-col">
<header className="flex flex-row items-center ">
<header className="flex flex-row items-center">
<div className="mr-auto align-middle text-2xl uppercase">
Cursorless
</div>
Expand Down

0 comments on commit a265378

Please sign in to comment.