Skip to content

Commit

Permalink
Add: Add more button
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Aug 29, 2024
1 parent 6348cde commit 22733f8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions frontend/app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ export const Home = () => {
fetchCharts={fetchNewCharts}
onEmpty={() => <div className="text-center">{t("empty")}</div>}
/>
<div className="flex justify-center">
<Link
to="/charts"
className="px-2 py-1 button-primary"
>
{t("more")}
</Link>
</div>
</div>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/routes/charts._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const Search = () => {
<RadixCollapsible.Trigger className="flex max-sm:justify-between items-center w-full p-2">
<h2 className="font-bold text-lg mr-2">{t("queries")}</h2>
{open ? <ChevronUpFilled /> : <ChevronDownFilled />}
<div className="ml-4 h-6 contain-strict flex-grow overflow-ellipsis overflow-hidden text-right">
<div className="ml-4 h-6 contain-strict flex-grow overflow-ellipsis overflow-hidden whitespace-nowrap text-right break-keep">
{currentQuery}
</div>
</RadixCollapsible.Trigger>
Expand Down
1 change: 1 addition & 0 deletions frontend/i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ home:
welcome: "Welcome to Chart Cyanvas! If you are new to this site, please read <0>How to use</0>."
empty: "No charts found."
openInSonolus: "Open in Sonolus"
more: "More"

menu:
search: "Search charts"
Expand Down
2 changes: 2 additions & 0 deletions frontend/i18n/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ home:
newCharts: "新着譜面"
welcome: "Chart Cyanvasへようこそ!初めての方は<0>初めての方へ</0>を参照して下さい。"
openInSonolus: "Sonolusで開く"
empty: "譜面が見付かりませんでした。"
more: "もっと見る"
menu:
search: "譜面検索"
post: "譜面投稿"
Expand Down

0 comments on commit 22733f8

Please sign in to comment.