Commit 8053a37
Redesign Words page with Masonry layout and modern UI (#73)
* feat: redesign Words page with masonry grid and modern UI
- Refactor `Words` page to use CSS multi-column masonry layout
- Extract `WordCard` component with new design (Chips, Dropdowns)
- Update `Spoiler` component to use CSS blur instead of image assets
- Clean up `Words` page header controls into a consolidated toolbar
- Remove unused `Spoiler.scss`
Co-authored-by: Asutorufa <16442314+Asutorufa@users.noreply.github.com>
* feat: redesign Words page with masonry grid and modern UI
- Refactor `Words` page to use CSS multi-column masonry layout
- Extract `WordCard` component with new design (Chips, Dropdowns)
- Update `Spoiler` component to use CSS blur instead of image assets
- Fix `Spoiler` text selection by adding dedicated hide button
- Consolidate `Words` page header controls into a consolidated toolbar
- Remove unused `Spoiler.scss`
Co-authored-by: Asutorufa <16442314+Asutorufa@users.noreply.github.com>
* feat: redesign Words and Flashcard pages with modern UI
- Refactor `Words` page to use masonry grid layout
- Create `WordCard` component with cleaner UI (Chips, Dropdowns)
- Update `Flashcard` page to match the new design language
- Improve `Spoiler` component: CSS blur, fix text selection, add min-height
- Consolidate header controls for better mobile experience
- Remove legacy `Spoiler.scss`
Co-authored-by: Asutorufa <16442314+Asutorufa@users.noreply.github.com>
* feat: add loading state to Anki count increment button
- Prevent race conditions by disabling the button while request is in progress
- Show loading spinner on the button during API call
Co-authored-by: Asutorufa <16442314+Asutorufa@users.noreply.github.com>
* fix: enforce type safety for priority colors
- Update `getPriorityColor` to return strict string literals
- Remove `as any` casts in `WordCard` and `Flashcard` components
Co-authored-by: Asutorufa <16442314+Asutorufa@users.noreply.github.com>
* fix: disable interactions during priority update
- Disable dropdown and reduce opacity of priority chip when update is loading
- Prevent concurrent priority update requests
Co-authored-by: Asutorufa <16442314+Asutorufa@users.noreply.github.com>
* feat: improve spoiler height in flashcards
- Allow passing className to Spoiler component
- Set full height for spoiler in flashcard view
- Add missing getPriorityText function (actually checked and it was present, verified in previous step)
Co-authored-by: Asutorufa <16442314+Asutorufa@users.noreply.github.com>
* fix: enable flashcard spoiler toggle and text selection
- Fix "Hide" button z-index in Spoiler component
- Enable text selection in Flashcard component
- Ensure Spoiler takes full height in Flashcard view
Co-authored-by: Asutorufa <16442314+Asutorufa@users.noreply.github.com>
* fix: enable flashcard spoiler toggle and text selection
- Fix "Hide" button z-index in Spoiler component
- Enable text selection in Flashcard component by restricting drag start
- Ensure Spoiler takes full height in Flashcard view
Co-authored-by: Asutorufa <16442314+Asutorufa@users.noreply.github.com>
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent fef6ab4 commit 8053a37
File tree
5 files changed
+530
-452
lines changed- src
- pages
5 files changed
+530
-452
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
293 | 292 | | |
294 | 293 | | |
295 | 294 | | |
296 | | - | |
| 295 | + | |
297 | 296 | | |
298 | 297 | | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
303 | 328 | | |
304 | 329 | | |
305 | 330 | | |
306 | 331 | | |
307 | | - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
308 | 339 | | |
309 | 340 | | |
310 | 341 | | |
| |||
0 commit comments