Compare commits

...

4 Commits

Author SHA1 Message Date
Gigi
c9739f804d chore: bump version to 0.10.29 2025-11-01 00:34:50 +01:00
Gigi
eeb44e344f Merge pull request #32 from dergigi/full-width-image-going-over
fix: correct fullWidthImages setting to use width instead of max-width
2025-11-01 00:34:32 +01:00
Gigi
a6674610b8 fix: correct fullWidthImages setting to use width instead of max-width
- Change from --image-max-width CSS variable to --image-width
- When enabled, sets images to width: 100% (enlarging small images)
- Always constrains with max-width: 100% to prevent overflow
- Update mobile responsive styles to respect the setting
2025-11-01 00:32:51 +01:00
Gigi
6ae3decafb docs: update CHANGELOG for v0.10.28 2025-11-01 00:27:08 +01:00
4 changed files with 24 additions and 6 deletions

View File

@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.10.28] - 2025-11-01
### Fixed
- Nostr URI processing in markdown links
- Prevent double-processing of markdown to avoid nested links
- Add HTTP URL detection to prevent processing nostr URIs in URLs
- Use parser-based approach to detect markdown link URLs
- Prevent nostr URI replacement inside markdown link URLs
- Remove unused variables in nostrUriResolver
- Improved blog post rendering with proper link handling
### Removed
- Debug console.log statements from nostrUriResolver
- Cleaned up debug logging used during troubleshooting
- Cleaner console output in production
## [0.10.27] - 2025-10-31
### Added

View File

@@ -1,6 +1,6 @@
{
"name": "boris",
"version": "0.10.28",
"version": "0.10.29",
"description": "A minimal nostr client for bookmark management",
"homepage": "https://read.withboris.com/",
"type": "module",

View File

@@ -71,8 +71,8 @@ export function useSettings({ relayPool, eventStore, pubkey, accountManager }: U
// Set paragraph alignment
root.setProperty('--paragraph-alignment', settings.paragraphAlignment || 'justify')
// Set image max-width based on full-width setting
root.setProperty('--image-max-width', settings.fullWidthImages ? 'none' : '100%')
// Set image width based on full-width setting
root.setProperty('--image-width', settings.fullWidthImages ? '100%' : 'auto')
}

View File

@@ -57,10 +57,10 @@
.reader .reader-markdown h1, .reader .reader-markdown h2, .reader .reader-markdown h3, .reader .reader-markdown h4, .reader .reader-markdown h5, .reader .reader-markdown h6 { text-align: left !important; }
/* Tame images from external content */
.reader .reader-html img, .reader .reader-markdown img {
max-width: var(--image-max-width, 100%);
width: var(--image-width, auto);
max-width: 100%;
max-height: 70vh;
height: auto;
width: auto;
display: block;
margin: 0.75rem auto;
border-radius: 6px;
@@ -192,8 +192,8 @@
}
.reader-markdown img, .reader-html img {
width: var(--image-width, auto) !important;
max-width: 100% !important;
width: auto !important;
height: auto;
}
}