Skip to content

fix: standardize spacing units from pixel values to Tailwind spacing …#108

Merged
rubixvi merged 1 commit intomainfrom
development
Jan 16, 2026
Merged

fix: standardize spacing units from pixel values to Tailwind spacing …#108
rubixvi merged 1 commit intomainfrom
development

Conversation

@rubixvi
Copy link
Copy Markdown
Owner

@rubixvi rubixvi commented Jan 16, 2026

…scale

Convert hardcoded pixel values to Tailwind's spacing scale for better consistency and maintainability. Updated max-width, height, and min-width values across components including cards, search results, sidebar, and table of contents. Also updated dependencies to latest patch versions.

Summary by Sourcery

Standardize layout spacing values using Tailwind’s spacing scale and refresh tooling and runtime dependencies.

Enhancements:

  • Replace hardcoded pixel-based max-width, height, and min-width values with Tailwind spacing scale utilities across search, not-found, homepage, cards, sidebar, and table of contents components.

Build:

  • Update Next.js, eslint-config-next, and related TypeScript/ESLint/Prettier tooling to the latest patch versions and bump the required Node.js and pnpm versions.

Chores:

  • Regenerate pnpm lockfile to reflect updated dependencies.

…scale

Convert hardcoded pixel values to Tailwind's spacing scale for better consistency and maintainability. Updated max-width, height, and min-width values across components including cards, search results, sidebar, and table of contents. Also updated dependencies to latest patch versions.
Copilot AI review requested due to automatic review settings January 16, 2026 01:16
@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
rubix-documents Building Building Preview, Comment Jan 16, 2026 1:17am

@sourcery-ai
Copy link
Copy Markdown

sourcery-ai Bot commented Jan 16, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Standardizes several hardcoded pixel-based layout dimensions to Tailwind spacing scale utilities across UI components and updates Next.js, related tooling, type definitions, Node engine, pnpm, and lockfile to the latest patch versions.

Class diagram for components updated to Tailwind spacing scale

classDiagram
class Search {
  +string layoutMaxHeight
  +string cardMaxWidth
  +string cardMaxWidthSm
}

class NotFoundPage {
  +string textMaxWidth
}

class HomePage {
  +string textMaxWidth
}

class Card {
  +number imageWidth
  +number imageHeight
  +string imageHeightClass
}

class Sidebar {
  +string minWidth
}

class TableOfContents {
  +string minWidth
}

class Settings {
  +boolean rightbar
  +boolean toc
}

Search --> Card : renders
HomePage --> Sidebar : uses
HomePage --> TableOfContents : uses
NotFoundPage --> Sidebar : uses
TableOfContents --> Settings : reads
Sidebar --> Settings : reads
Loading

File-Level Changes

Change Details Files
Convert pixel-based layout dimensions to Tailwind spacing scale utilities for consistency with the design system.
  • Replace search results scroll area max height from a hardcoded pixel value to a Tailwind spacing max-h utility.
  • Update search result card max-width constraints to Tailwind spacing-based max-w utilities for both base and small breakpoints.
  • Change 404 and home page paragraph max-width from a fixed pixel width to a Tailwind spacing max-w utility.
  • Update markdown Card image height from a fixed pixel height to a Tailwind spacing h utility.
  • Adjust sidebar and table of contents min-width from fixed pixel values to Tailwind spacing-based min-w utilities.
components/navigation/search.tsx
app/not-found.tsx
app/page.tsx
components/markdown/card.tsx
components/sidebar/index.tsx
components/toc/index.tsx
Update framework, tooling, and environment dependencies to the latest patch versions and refresh the lockfile.
  • Bump @next/third-parties and next to the next patch release and align eslint-config-next.
  • Update type definitions for Node and React, and bump @typescript-eslint/parser and typescript-eslint.
  • Upgrade prettier to the next patch and keep Tailwind-related tooling unchanged.
  • Increase required Node engine from v22.x to v24.x and bump pnpm minor/patch version.
  • Regenerate pnpm-lock.yaml to reflect all dependency and engine changes.
package.json
pnpm-lock.yaml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@rubixvi rubixvi merged commit 0d69731 into main Jan 16, 2026
8 of 10 checks passed
Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've left some high level feedback:

  • The new Tailwind spacing classes like max-h-87.5, max-w-77.5, max-w-120, h-45, and min-w-57.5 are not part of the default spacing scale; ensure corresponding custom spacing keys exist in your Tailwind config or consider keeping these as arbitrary values (e.g. max-h-[21.875rem]) for reliability.
  • With the Node engine updated to ^24.x and pnpm bumped, double-check that your CI and deployment environments are explicitly configured to use these versions to avoid unexpected runtime or tooling mismatches.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The new Tailwind spacing classes like `max-h-87.5`, `max-w-77.5`, `max-w-120`, `h-45`, and `min-w-57.5` are not part of the default spacing scale; ensure corresponding custom spacing keys exist in your Tailwind config or consider keeping these as arbitrary values (e.g. `max-h-[21.875rem]`) for reliability.
- With the Node engine updated to `^24.x` and `pnpm` bumped, double-check that your CI and deployment environments are explicitly configured to use these versions to avoid unexpected runtime or tooling mismatches.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request standardizes spacing units across the codebase by converting hardcoded pixel values to Tailwind's spacing scale. The changes include updating component dimensions for cards, search results, sidebar, and table of contents components, along with dependency updates to latest patch versions.

Changes:

  • Converted pixel-based spacing values to Tailwind spacing scale (e.g., [230px] to 57.5, [600px] to 150)
  • Updated Next.js and related dependencies from 16.1.1 to 16.1.2
  • Updated development dependencies including TypeScript ESLint, Prettier, and type definitions
  • Changed Node.js engine requirement from ^22.x to ^24.x
  • Updated package manager from pnpm@10.25.0 to pnpm@10.28.0

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
pnpm-lock.yaml Updated dependency versions with patch updates for Next.js, Babel, TypeScript, ESLint, and other tooling packages
package.json Updated dependency versions and changed Node.js engine requirement to ^24.x
components/toc/index.tsx Changed min-w-[230px] to min-w-57.5 for table of contents sidebar width
components/sidebar/index.tsx Changed min-w-[230px] to min-w-57.5 for sidebar width
components/navigation/search.tsx Converted search dialog max-height and max-width from pixel values to spacing scale units
components/markdown/card.tsx Changed image height from h-[180px] to h-45
app/page.tsx Changed max-width from [600px] to 150 for homepage description text
app/not-found.tsx Changed max-width from [600px] to 150 for 404 page text
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread components/toc/index.tsx
Comment thread components/sidebar/index.tsx
Comment thread components/navigation/search.tsx
Comment thread components/navigation/search.tsx
Comment thread components/markdown/card.tsx
Comment thread app/page.tsx
Comment thread app/not-found.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants