Changeset 3d37c67 in Klonkt for src/views/pages/authorize-interaction.ejs
- Timestamp:
- 06/26/2026 11:38:25 PM (2 months ago)
- Branches:
- main
- Children:
- 2f42b60
- Parents:
- 3289a64
- File:
-
- 1 edited
-
src/views/pages/authorize-interaction.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/authorize-interaction.ejs
r3289a64 r3d37c67 95 95 <form method="post" action="/authorize_interaction/like"> 96 96 <input type="hidden" name="uri" value="<%= uri %>"> 97 <button type="submit" class="btn btn-primary auth-like-btn">★ <%= t('fedi.like_btn') %></button> 97 <button type="submit" class="fedi-bigact fedi-bigact-like<%= (typeof reacted !== 'undefined' && reacted.liked) ? ' is-on' : '' %>"> 98 <svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 2.6l2.9 5.88 6.49.95-4.7 4.58 1.11 6.46L12 17.96l-5.8 3.06 1.1-6.46-4.69-4.58 6.49-.95z"/></svg> 99 <span><%= (typeof reacted !== 'undefined' && reacted.liked) ? t('fedi.unlike_short') : t('fedi.like_short') %></span> 100 </button> 98 101 </form> 99 102 <form method="post" action="/authorize_interaction/boost"> 100 103 <input type="hidden" name="uri" value="<%= uri %>"> 101 <button type="submit" class="btn auth-boost-btn">🔁 <%= t('fedi.boost_btn') %></button> 104 <button type="submit" class="fedi-bigact fedi-bigact-boost<%= (typeof reacted !== 'undefined' && reacted.boosted) ? ' is-on' : '' %>"> 105 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="17 1 21 5 17 9"/><path d="M3 11V9a4 4 0 0 1 4-4h14"/><polyline points="7 23 3 19 7 15"/><path d="M21 13v2a4 4 0 0 1-4 4H3"/></svg> 106 <span><%= (typeof reacted !== 'undefined' && reacted.boosted) ? t('tl.unboost') : t('fedi.boost_short') %></span> 107 </button> 102 108 </form> 103 109 </div> … … 146 152 text-decoration: none; font-weight: 600; font-size: .92rem; transition: background .15s, border-color .15s; } 147 153 .auth-view-src:hover { background: color-mix(in srgb, var(--accent, #888) 18%, transparent); border-color: var(--accent, #888); } 148 .auth-interact-react { display: flex; gap: . 5rem; flex-wrap: wrap; margin: 0 0 .25rem; }154 .auth-interact-react { display: flex; gap: .6rem; flex-wrap: wrap; margin: 0 0 .25rem; } 149 155 .auth-interact-react form { margin: 0; } 150 .auth-boost-btn { white-space: nowrap; } 156 .fedi-bigact { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border-radius: 999px; 157 border: 1px solid color-mix(in srgb, var(--ink, #000) 14%, transparent); 158 background: color-mix(in srgb, var(--ink, #000) 4%, transparent); 159 color: var(--ink, inherit); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; white-space: nowrap; 160 transition: background .12s, border-color .12s; } 161 .fedi-bigact svg { width: 17px; height: 17px; flex: 0 0 17px; } 162 .fedi-bigact-like svg { color: #e8b04b; } 163 .fedi-bigact-like:hover, .fedi-bigact-like.is-on { background: color-mix(in srgb, #e8b04b 16%, transparent); border-color: color-mix(in srgb, #e8b04b 55%, transparent); } 164 .fedi-bigact-boost svg { color: #2fa85a; } 165 .fedi-bigact-boost:hover, .fedi-bigact-boost.is-on { background: color-mix(in srgb, #2fa85a 16%, transparent); border-color: color-mix(in srgb, #2fa85a 55%, transparent); } 151 166 .fedi-manage { list-style: none; padding: 0; margin: 1.25rem 0 1rem; display: flex; flex-direction: column; gap: .7rem; } 152 167 .fedi-manage-item { padding: .85rem 1rem; border-radius: 14px; background: color-mix(in srgb, var(--ink, #000) 4%, transparent); border: 1px solid color-mix(in srgb, var(--ink, #000) 9%, transparent); }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)