Skip to content

Commit 795dccb

Browse files
jerryc127Innei
andauthored
fix: power page z-index (#910)
* refactor: optimize CSS classes in EntryPlaceholderLogo and TableHeader Simplify CSS classes in EntryPlaceholderLogo component and remove unnecessary z-index usage in TableHeader component. * update Signed-off-by: Innei <tukon479@gmail.com> --------- Signed-off-by: Innei <tukon479@gmail.com> Co-authored-by: Innei <tukon479@gmail.com>
1 parent fac97f1 commit 795dccb

File tree

6 files changed

+36
-28
lines changed

6 files changed

+36
-28
lines changed

apps/renderer/src/modules/entry-content/components/EntryPlaceholderLogo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ export const EntryPlaceholderLogo = () => {
1414
<div
1515
onContextMenu={stopPropagation}
1616
className={cn(
17-
"flex w-full min-w-0 flex-col items-center justify-center gap-1 text-balance px-12 pb-6 text-center text-lg font-medium text-zinc-400 duration-500",
17+
"flex w-full min-w-0 flex-col items-center justify-center gap-1 px-12 pb-6 text-center text-lg font-medium text-zinc-400 duration-500",
1818
!logoShow && "translate-y-[-50px] opacity-0",
1919
)}
2020
>
2121
<Logo className="size-16 opacity-40 grayscale" />
22-
<span className="max-w-[60ch]">{title}</span>
22+
<div className="line-clamp-3 w-[60ch] max-w-full">{title}</div>
2323
</div>
2424
)
2525
}

apps/renderer/src/modules/power/transaction-section/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const TransactionsSection: Component = ({ className }) => {
5656
</Tabs>
5757
<div className={cn("w-fit min-w-0 grow overflow-x-auto", className)}>
5858
<Table className="w-full table-fixed">
59-
<TableHeader className="sticky top-0 z-10 bg-theme-background">
59+
<TableHeader className="sticky top-0 bg-theme-background">
6060
<TableRow className="[&_*]:!pl-0 [&_*]:!font-semibold">
6161
<TableHead>{t("wallet.transactions.type")}</TableHead>
6262
<TableHead>{t("wallet.transactions.amount")}</TableHead>

apps/renderer/src/modules/profile/user-profile-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ const SubscriptionItem: FC<{
398398
!isLoose && "flex items-center",
399399
)}
400400
>
401-
<div className="truncate font-medium leading-none">{subscription.feeds?.title}</div>
401+
<div className="truncate font-medium leading-tight">{subscription.feeds?.title}</div>
402402
{isLoose && (
403403
<div className="mt-1 line-clamp-1 text-xs text-zinc-500">
404404
{subscription.feeds?.description}

locales/app/zh-HK.json

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -54,27 +54,27 @@
5454
"entry_actions.copied_notify": "{{which}}已複製到剪貼板",
5555
"entry_actions.copy_link": "複製連結",
5656
"entry_actions.copy_title": "複製標題",
57-
"entry_actions.failed_to_save_to_eagle": "無法保存至 Eagle",
58-
"entry_actions.failed_to_save_to_instapaper": "無法保存至 Instapaper",
59-
"entry_actions.failed_to_save_to_readwise": "無法保存至 Readwise",
57+
"entry_actions.failed_to_save_to_eagle": "無法保存至 Eagle",
58+
"entry_actions.failed_to_save_to_instapaper": "無法保存至 Instapaper",
59+
"entry_actions.failed_to_save_to_readwise": "無法保存至 Readwise",
6060
"entry_actions.mark_as_read": "標記為已讀",
6161
"entry_actions.mark_as_unread": "標記為未讀",
6262
"entry_actions.open_in_browser": "在{{which}}中開啟",
6363
"entry_actions.recent_reader": "最近閱讀者:",
6464
"entry_actions.save_media_to_eagle": "保存媒體至 Eagle",
6565
"entry_actions.save_to_instapaper": "保存至 Instapaper",
6666
"entry_actions.save_to_readwise": "保存至 Readwise",
67-
"entry_actions.saved_to_eagle": "已保存至 Eagle",
68-
"entry_actions.saved_to_instapaper": "已保存至 Instapaper",
69-
"entry_actions.saved_to_readwise": "已保存至 Readwise",
67+
"entry_actions.saved_to_eagle": "已保存至 Eagle",
68+
"entry_actions.saved_to_instapaper": "已保存至 Instapaper",
69+
"entry_actions.saved_to_readwise": "已保存至 Readwise",
7070
"entry_actions.share": "分享",
7171
"entry_actions.star": "收藏",
72-
"entry_actions.starred": "已收藏",
72+
"entry_actions.starred": "已收藏",
7373
"entry_actions.tip": "贊助",
7474
"entry_actions.unstar": "取消收藏",
75-
"entry_actions.unstarred": "已取消收藏",
75+
"entry_actions.unstarred": "已取消收藏",
7676
"entry_actions.view_source_content": "查看原始內容",
77-
"entry_column.filtered_content_tip": "你已隱藏篩選內容",
77+
"entry_column.filtered_content_tip": "你已隱藏篩選內容",
7878
"entry_column.filtered_content_tip_2": "除了以上顯示的條目,還有一些已篩選的內容。",
7979
"entry_column.refreshing": "刷新新條目中...",
8080
"entry_content.ai_summary": "AI 摘要",
@@ -85,12 +85,12 @@
8585
"entry_content.readability_notice": "此內容由 Readability 提供。如果你發現排版異常,請到來源網站查看原始內容。",
8686
"entry_content.render_error": "渲染錯誤:",
8787
"entry_content.report_issue": "報告問題",
88-
"entry_content.support_amount": "{{amount}} 人支持了此訂閱源的創作者",
88+
"entry_content.support_amount": "{{amount}} 人支持了此訂閱源的創作者",
8989
"entry_content.support_creator": "支持創作者",
9090
"entry_content.web_app_notice": "網頁應用可能不支持此內容類型。你可以下載桌面應用程式。",
9191
"entry_list.zero_unread": "全部已讀",
9292
"entry_list_header.daily_report": "每日報告",
93-
"entry_list_header.hide_no_image_items": "隱藏沒有圖片的條目",
93+
"entry_list_header.hide_no_image_items": "隱藏沒有圖片的條目",
9494
"entry_list_header.items": "項目",
9595
"entry_list_header.new_entries_available": "有新條目可用",
9696
"entry_list_header.refetch": "重新抓取",
@@ -105,12 +105,12 @@
105105
"entry_list_header.unread": "未讀",
106106
"feed_claim_modal.choose_verification_method": "有三種驗證方法可選,你可以選擇其中一種進行驗證。",
107107
"feed_claim_modal.claim_button": "認領",
108-
"feed_claim_modal.content_instructions": "複製以下內容並貼到你最新的 RSS 訂閱源中",
108+
"feed_claim_modal.content_instructions": "複製以下內容並貼到你最新的 RSS 訂閱源中",
109109
"feed_claim_modal.description_current": "當前描述:",
110-
"feed_claim_modal.description_instructions": "複製以下內容並貼到你的 RSS 訂閱源中的 <code /> 欄位",
110+
"feed_claim_modal.description_instructions": "複製以下內容並貼到你的 RSS 訂閱源中的 <code /> 欄位",
111111
"feed_claim_modal.failed_to_load": "無法加載認領信息",
112112
"feed_claim_modal.rss_format_choice": "RSS 生成器通常有兩種格式可選。請根據需要複製以下的 XML 和 JSON 格式。",
113-
"feed_claim_modal.rss_instructions": "複製以下代碼並貼到你的 RSS 生成器中",
113+
"feed_claim_modal.rss_instructions": "複製以下代碼並貼到你的 RSS 生成器中",
114114
"feed_claim_modal.rss_json_format": "JSON 格式",
115115
"feed_claim_modal.rss_xml_format": "XML 格式",
116116
"feed_claim_modal.rsshub_notice": "此訂閱源由 RSSHub 提供,緩存時間為 1 小時。發布內容後,請等待最多 1 小時更改才能生效。",
@@ -122,23 +122,23 @@
122122
"feed_form.add_follow": "新增關注",
123123
"feed_form.category": "分類",
124124
"feed_form.category_description": "默認情況下,你的關注會按網站分組。",
125-
"feed_form.error_fetching_feed": "獲取訂閱源時出錯",
125+
"feed_form.error_fetching_feed": "獲取訂閱源時出錯",
126126
"feed_form.fee": "跟隨費用",
127127
"feed_form.fee_description": "要跟隨此清單,您必須向清單創建者支付費用。",
128-
"feed_form.feed_not_found": "未找到相關資訊流",
128+
"feed_form.feed_not_found": "未找到相關資訊流",
129129
"feed_form.feedback": "反饋",
130130
"feed_form.follow": "關注",
131131
"feed_form.follow_with_fee": "跟隨需要 {{fee}} Power",
132-
"feed_form.followed": "🎉 已關注",
132+
"feed_form.followed": "🎉 已關注",
133133
"feed_form.private_follow": "私人關注",
134-
"feed_form.private_follow_description": "此關注是否在你的個人資料頁面上公開可見",
134+
"feed_form.private_follow_description": "此關注是否在你的個人資料頁面上公開可見",
135135
"feed_form.retry": "重試",
136136
"feed_form.title": "標題",
137137
"feed_form.title_description": "此資訊流的自定義標題。留空則使用默認標題。",
138138
"feed_form.unfollow": "取消關注",
139139
"feed_form.update": "更新",
140140
"feed_form.update_follow": "更新關注",
141-
"feed_form.updated": "🎉 已更新",
141+
"feed_form.updated": "🎉 已更新",
142142
"feed_form.view": "視圖",
143143
"feed_item.claimed_by_owner": "訂閲源所有者",
144144
"feed_item.claimed_by_unknown": "未知所有者",
@@ -152,7 +152,7 @@
152152
"feed_view_type.pictures": "圖片",
153153
"feed_view_type.social_media": "社交媒體",
154154
"feed_view_type.videos": "視頻",
155-
"mark_all_read_button.auto_confirm_info": "將在 3 秒後自動確認",
155+
"mark_all_read_button.auto_confirm_info": "將在 3 秒後自動確認",
156156
"mark_all_read_button.confirm": "確認",
157157
"mark_all_read_button.confirm_mark_all": "確定將 <which /> 標記為已讀?",
158158
"mark_all_read_button.confirm_mark_all_info": "確定將所有標記為已讀?",
@@ -163,7 +163,7 @@
163163
"notify.unSupportWidth": "{{app_name}} 目前尚未支援流動裝置",
164164
"notify.unSupportWidth_1": "您的裝置寬度為 <b>{{width}}</b>,低於支援的最小寬度 {{minWidth}}",
165165
"notify.unSupportWidth_2": "請切換至桌面應用程式繼續使用 {{app_name}} <br /> 下載連結:<url />",
166-
"notify.unfollow_feed": "已取消關注 <FeedItem />",
166+
"notify.unfollow_feed": "已取消關注 <FeedItem />",
167167
"notify.update_info": "{{app_name}} 已準備好更新!",
168168
"notify.update_info_1": "點擊以重新啟動",
169169
"player.back_10s": "倒退 10 秒",
@@ -181,7 +181,7 @@
181181
"player.volume": "音量",
182182
"resize.tooltip.double_click_to_collapse": "<b>雙擊</b>以摺疊",
183183
"resize.tooltip.drag_to_resize": "<b>拖曳</b>以調整大小",
184-
"search.empty.no_results": "未找到結果",
184+
"search.empty.no_results": "未找到結果",
185185
"search.group.entries": "條目",
186186
"search.group.feeds": "訂閱源",
187187
"search.options.all": "所有",
@@ -239,7 +239,7 @@
239239
"tip_modal.feed_owner": "訂閱源擁有者",
240240
"tip_modal.low_balance": "你的餘額不足以覆蓋此贊助。請調整金額。",
241241
"tip_modal.no_wallet": "你尚未擁有錢包。請創建一個錢包以進行贊助。",
242-
"tip_modal.tip_amount_sent": "已經發送給作者",
242+
"tip_modal.tip_amount_sent": "已經發送給作者",
243243
"tip_modal.tip_now": "立刻贊助",
244244
"tip_modal.tip_sent": "贊助成功!感謝你的支持。",
245245
"tip_modal.tip_support": "⭐ 贊助以顯示你的支持!",
@@ -284,6 +284,7 @@
284284
"words.search": "搜尋",
285285
"words.starred": "收藏",
286286
"words.title": "標題",
287+
"words.transform": "轉換",
287288
"words.trending": "熱門",
288289
"words.undo": "撤銷",
289290
"words.unread": "未讀",

locales/common/zh-HK.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"words.back": "返回",
1717
"words.copy": "複製",
1818
"words.create": "創建",
19+
"words.delete": "刪除",
1920
"words.edit": "編輯",
2021
"words.entry": "條目",
2122
"words.id": "ID",

locales/settings/zh-HK.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@
8989
"general.app": "應用程式",
9090
"general.data_persist.description": "本地保存數據以啟用離線存取和本地搜尋。",
9191
"general.data_persist.label": "離線使用時保留數據",
92+
"general.export.button": "匯出",
93+
"general.export.description": "匯出你的訂閱到 OPML 文件",
94+
"general.export.label": "匯出訂閱",
9295
"general.group_by_date.description": "按日期分組條目。",
9396
"general.group_by_date.label": "按日期分組",
9497
"general.language": "語言",
@@ -159,6 +162,8 @@
159162
"lists.create": "建立新清單",
160163
"lists.created.error": "建立清單失敗。",
161164
"lists.created.success": "成功建立清單!",
165+
"lists.delete.error": "刪除清單失敗。",
166+
"lists.delete.success": "成功刪除清單!",
162167
"lists.description": "描述",
163168
"lists.earnings": "收益",
164169
"lists.edit.error": "編輯清單失敗。",
@@ -184,7 +189,7 @@
184189
"lists.submit": "提交",
185190
"lists.subscriptions": "訂閱",
186191
"lists.title": "標題",
187-
"lists.view": "查看",
192+
"lists.view": "視圖",
188193
"profile.avatar.label": "頭像",
189194
"profile.handle.description": "你的唯一識別符。",
190195
"profile.handle.label": "識別符",
@@ -226,6 +231,7 @@
226231
"wallet.transactions.to": "發送至",
227232
"wallet.transactions.tx": "交易",
228233
"wallet.transactions.type": "類型",
234+
"wallet.transactions.types.all": "全部",
229235
"wallet.transactions.types.burn": "銷燬",
230236
"wallet.transactions.types.mint": "鑄造",
231237
"wallet.transactions.types.purchase": "購買",

0 commit comments

Comments
 (0)