Skip to content

Commit 49dd835

Browse files
committed
Improve book view display area and release v1.1.1
1 parent efbe941 commit 49dd835

5 files changed

Lines changed: 14 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
### 2026-03-14: 1.1.1
2+
3+
* Move book view background active word to upper area instead of center
4+
* Increase display area opacity and add backdrop blur in book view
5+
* Remove max-width constraint from book view display area
6+
* Add soft feathered edges to book view ORP overlay
7+
18
### 2026-03-08: 1.1.0
29

310
* Add book view mode with text flowing around a fixed center word

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ⚡ Speed reader
22

3-
![Version](https://img.shields.io/badge/version-1.1.0-blue?style=for-the-badge)
3+
![Version](https://img.shields.io/badge/version-1.1.1-blue?style=for-the-badge)
44
![React](https://img.shields.io/badge/React-61DAFB?style=for-the-badge&logo=react&logoColor=black)
55
![Vite](https://img.shields.io/badge/Vite-646CFF?style=for-the-badge&logo=vite&logoColor=white)
66
![JavaScript](https://img.shields.io/badge/JavaScript-F7DF1E?style=for-the-badge&logo=javascript&logoColor=black)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "speed-reader",
33
"private": true,
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ const BookView = memo(function BookView({ words, currentIndex, sideOpacity, setC
354354
const containerH = bgContainerRef.current.clientHeight;
355355
const markerTop = markerRef.current.offsetTop - bgTextRef.current.offsetTop;
356356
const markerH = markerRef.current.offsetHeight;
357-
const offset = containerH / 2 - markerTop - markerH / 2;
357+
const offset = containerH * 0.3 - markerTop - markerH / 2;
358358
bgTextRef.current.style.transform = `translateY(${offset}px)`;
359359
}
360360
}, [currentIndex]);

src/index.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,10 +658,12 @@ button:active {
658658
flex-direction: column;
659659
align-items: center;
660660
width: 100%;
661-
max-width: 600px;
662-
background-color: rgba(10, 10, 10, 0.55);
661+
background-color: rgba(10, 10, 10, 0.75);
662+
backdrop-filter: blur(2px);
663+
-webkit-backdrop-filter: blur(2px);
663664
border-radius: 8px;
664665
padding: 0 16px;
666+
box-shadow: 0 0 40px 30px rgba(10, 10, 10, 0.75);
665667
}
666668

667669
.bv-focal-guide {

0 commit comments

Comments
 (0)