@okjavis/nodebb-theme-javis 3.0.9 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okjavis/nodebb-theme-javis",
3
- "version": "3.0.9",
3
+ "version": "4.0.1",
4
4
  "description": "Modern, premium NodeBB theme for JAVIS Community - Extends Harmony with custom styling",
5
5
  "main": "theme.js",
6
6
  "scripts": {
@@ -406,6 +406,7 @@ html.composing .composer .formatting-bar {
406
406
  margin: 0 !important;
407
407
  flex-shrink: 0 !important;
408
408
  gap: $jv-space-3 !important;
409
+ overflow: visible !important; // Allow dropdowns to show
409
410
  }
410
411
 
411
412
  html.composing .composer .formatting-group {
@@ -413,8 +414,7 @@ html.composing .composer .formatting-group {
413
414
  align-items: center !important;
414
415
  gap: 2px !important;
415
416
  flex-wrap: nowrap !important;
416
- overflow-x: auto !important;
417
- overflow-y: visible !important; // Allow badges to overflow vertically
417
+ overflow: visible !important; // Allow dropdowns to show
418
418
  padding-top: 8px !important; // Space for badges that overflow upward
419
419
 
420
420
  li {
@@ -456,6 +456,22 @@ html.composing .composer .formatting-group {
456
456
  line-height: 16px !important;
457
457
  }
458
458
  }
459
+
460
+ // Dropdown containers (like Heading dropdown)
461
+ &.dropdown,
462
+ &.bottom-sheet {
463
+ overflow: visible !important;
464
+ position: relative !important;
465
+
466
+ .dropdown-menu {
467
+ position: absolute !important;
468
+ top: 100% !important;
469
+ left: 0 !important;
470
+ min-width: 150px !important;
471
+ z-index: 9999 !important;
472
+ margin-top: 2px !important;
473
+ }
474
+ }
459
475
  }
460
476
 
461
477
  .spacer {
package/scss/_feed.scss CHANGED
@@ -315,7 +315,7 @@
315
315
  .feed li[component="post"].posts-list-item {
316
316
  background: $jv-surface !important;
317
317
  border: 1px solid $jv-border-subtle !important;
318
- border-radius: $jv-radius-sm !important;
318
+ border-radius: $jv-radius-lg !important; // Match composer and widgets (16px)
319
319
  margin-bottom: $jv-space-2 !important;
320
320
  box-shadow: $jv-shadow-sm !important;
321
321
  overflow: hidden !important;
@@ -657,7 +657,7 @@
657
657
  // Action bar - now a direct child of the post card
658
658
  .feed-action-bar {
659
659
  background: $jv-surface !important;
660
- border-radius: 0 0 $jv-radius-sm $jv-radius-sm; // Match card's bottom corners
660
+ border-radius: 0 0 $jv-radius-lg $jv-radius-lg; // Match card's bottom corners (16px)
661
661
 
662
662
  .btn-link {
663
663
  display: inline-flex;
package/scss/_forms.scss CHANGED
@@ -116,9 +116,15 @@ textarea {
116
116
 
117
117
  i {
118
118
  width: 16px;
119
+ flex-shrink: 0;
119
120
  color: $jv-text-muted;
120
121
  }
121
122
 
123
+ // Hide bookmark option from dropdown menu
124
+ &[component="post/bookmark"] {
125
+ display: none !important;
126
+ }
127
+
122
128
  &:hover {
123
129
  background: rgba(0, 81, 255, 0.06);
124
130
  color: $jv-primary;
@@ -94,13 +94,12 @@
94
94
  {{{ end }}}
95
95
 
96
96
  <!-- 3. ACTION BAR (third - separated from content) -->
97
+ <!-- Order: Likes, Comments, Reply -->
97
98
  <div class="feed-action-bar d-flex justify-content-between px-3 py-2 border-top">
98
- <a href="{config.relative_path}/post/{{{ if ./topic.teaserPid }}}{./topic.teaserPid}{{{ else }}}{./pid}{{{ end }}}" class="btn btn-link btn-sm text-body {{{ if !./isMainPost }}}invisible{{{ end }}}"><i class="fa-fw fa-regular fa-message text-muted"></i> {humanReadableNumber(./topic.postcount)}</a>
99
-
100
- <a href="#" data-pid="{./pid}" data-action="bookmark" data-bookmarked="{./bookmarked}" data-bookmarks="{./bookmarks}" class="btn btn-link btn-sm text-body"><i class="fa-fw fa-bookmark {{{ if ./bookmarked }}}fa text-primary{{{ else }}}fa-regular text-muted{{{ end }}}"></i> <span component="bookmark-count">{humanReadableNumber(./bookmarks)}</span></a>
101
-
102
99
  <a href="#" data-pid="{./pid}" data-action="upvote" data-upvoted="{./upvoted}" data-upvotes="{./upvotes}" class="btn btn-link btn-sm text-body"><i class="fa-fw fa-heart {{{ if ./upvoted }}}fa text-danger{{{ else }}}fa-regular text-muted{{{ end }}}"></i> <span component="upvote-count">{humanReadableNumber(./upvotes)}</span></a>
103
100
 
101
+ <a href="{config.relative_path}/post/{{{ if ./topic.teaserPid }}}{./topic.teaserPid}{{{ else }}}{./pid}{{{ end }}}" class="btn btn-link btn-sm text-body {{{ if !./isMainPost }}}invisible{{{ end }}}"><i class="fa-fw fa-regular fa-message text-muted"></i> {humanReadableNumber(./topic.postcount)}</a>
102
+
104
103
  <a href="#" data-pid="{./pid}" data-is-main="{./isMainPost}" data-tid="{./tid}" data-action="reply" class="btn btn-link btn-sm text-body"><i class="fa-fw fa fa-reply text-muted"></i> [[topic:reply]]</a>
105
104
  </div>
106
105
  </li>