Implement the DiffContext component that allows users to toggle the number of lines and the full context mode for diffs. The component stores these settings persistently in the browser's local storage. The changes involve creating a new Svelte component file, and adding the necessary script and HTML to handle the functionality.
Other things:
- Added new files for the DiffContext component
- Included logic to handle toggling the number of lines and full context mode
- Ensured persistence of the settings using local storage
- Defined and utilized stores for the persistent data
This commit improves the Differ component by removing unnecessary lines of code for determining the line number digits for both the original and current files. The general logic remains unchanged, but there's a cleaner approach for handling line numbering operations, resulting in a more concise and efficient implementation.
Removed lines:
- Original and current line number digit calculation
This commit adds the `background-image` property to the `.card` class, using an external URL for a noise generated image. Also, the diff includes a simple refactoring in `+page.svelte` where the `enrichSession` function has been moved into a separate script context. These changes enhance the visual appearance of the card and improve code organization.
Details:
- Add `background-image` property to `.card` class in `app.postcss`
- Move `enrichSession` function into separate script context in `+page.svelte`
Improved the overall appearance and spacing of command palette elements. This includes minor style adjustments, such as removing unnecessary padding, adding margins for better spacing between elements, and refining the selection visuals for better user experience.
Changes:
- Removed unnecessary rounded corners in command-palette class
- Removed unused padding at the bottom of command-pallet-content-container
- Added margin for better spacing between command groups
- Modified selected command item appearance for better visibility