forge
Explore
Log in

Don't you dare go Hollow

Drop the page titles over the trash and shared lists

Browse files at this commit

d64cec85d1b026366916c6a614d5ff9a2afa05a9Ahmet Kaan GümüşParent: 9e17fb4
  • fix
    • drop the page titles over the trash and shared lists
Show full message
fix(ui): drop the page titles over the trash and shared lists

The drive leads straight into its filterbar; /trash and /shared carried
an h1 over theirs, so leaving the drive shifted the whole listing a
title-height down. The topbar already names the section — the titles,
and the now-unused Trash and SharedWithMe keys, go.
.pi/remote-pi/config.jsonadded+4 -0
@@ -0,0 +1,4 @@
1+{
2+ "agent_name": "in",
3+ "auto_start_relay": true
4+}
\ No newline at end of file
crates/in-web/src/i18n.rsmodified+0 -6
@@ -144,10 +144,8 @@ pub enum Key {
144144 SharePlaceholder,
145145 CanDownload,
146146 RemoveAccess,
147- SharedWithMe,
148147 NoSharedItems,
149148 // Trash.
150- Trash,
151149 TrashEmpty,
152150 Restore,
153151 DeleteForever,
@@ -296,9 +294,7 @@ pub fn t(lang: Lang, key: Key) -> &'static str {
296294 SharePlaceholder => "Name or address",
297295 CanDownload => "May download",
298296 RemoveAccess => "Remove access",
299- SharedWithMe => "Shared with me",
300297 NoSharedItems => "Nothing is shared with you yet.",
301- Trash => "Trash",
302298 TrashEmpty => "The trash is empty.",
303299 Restore => "Restore",
304300 DeleteForever => "Delete forever",
@@ -437,9 +433,7 @@ pub fn t(lang: Lang, key: Key) -> &'static str {
437433 SharePlaceholder => "Ad ya da adres",
438434 CanDownload => "İndirebilir",
439435 RemoveAccess => "Erişimi kaldır",
440- SharedWithMe => "Benimle paylaşılanlar",
441436 NoSharedItems => "Seninle henüz bir şey paylaşılmadı.",
442- Trash => "Çöp",
443437 TrashEmpty => "Çöp boş.",
444438 Restore => "Geri al",
445439 DeleteForever => "Kalıcı olarak sil",
crates/in-web/src/share.rsmodified+0 -1
@@ -969,7 +969,6 @@ async fn shared(cx: &Cx) -> Result {
969969 cx =>
970970 (topbar(cx, NavPage::Shared, &user, language).await?)
971971 <main class="settings-stage stage-wide">
972- <h1 class="settings-title">(t(language, Key::SharedWithMe))</h1>
973972 <div class="filterbar">
974973 <form class="field-box field-box-search" method="get" action="/shared">
975974 <span class="field-text">(t(language, Key::NavSearch))</span>
crates/in-web/src/trash.rsmodified+0 -1
@@ -305,7 +305,6 @@ async fn trash(cx: &Cx) -> Result {
305305 cx =>
306306 (topbar(cx, NavPage::Trash, &user, language).await?)
307307 <main class="settings-stage stage-wide">
308- <h1 class="settings-title">(t(language, Key::Trash))</h1>
309308 <div class="filterbar">
310309 <form class="field-box field-box-search" method="get" action="/trash">
311310 <span class="field-text">(t(language, Key::NavSearch))</span>