Skip to content

Commit e8c4ab8

Browse files
committed
run in background & mobile-compact-scroll-header updates
1 parent fe89623 commit e8c4ab8

File tree

11 files changed

+209
-56
lines changed

11 files changed

+209
-56
lines changed

packages/seed-bible/app/assets/en.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@
256256
"join": "Join",
257257
"reportBug": "Report a bug",
258258
"help": "Help",
259+
"runInBackground": "Run in background",
259260
"showInToolbar": "Show in toolbar",
260261
"orShowIn": "Or show in",
261262
"panel": "Panel",
@@ -280,6 +281,25 @@
280281
"onyx": "Onyx",
281282
"nova": "Nova",
282283
"shimmer": "Shimmer",
284+
"copied": "Copied!",
285+
"sessionQRCode": "Session QR Code",
286+
"copySessionLink": "Copy Session Link",
287+
"copiedSessionLink": "✓ Copied!",
288+
"canvasAiSettings": "Canvas AI settings",
289+
"canvasAiSettingsDesc": "Settings for AI features in the canvas",
290+
"aiChat": "AI Chat",
291+
"aiImage": "AI Image",
292+
"aiAssistant": "AI Assistant",
293+
"selectModel": "Select model",
294+
"selectVoice": "Select voice",
295+
"positivePrompt": "Positive prompt",
296+
"aiModelsExperiment": "Different AI models can produce different or better results so feel free to experiment.",
297+
"showItem": "Show item",
298+
"hideItem": "Hide item",
299+
"noSubscriptionsYet": "You haven't subscribed to anyone yet.",
300+
"addSubscription": "+ Add Subscription",
301+
"enterUserId": "Enter User ID",
302+
"enterUserIdPlaceholder": "Enter user ID...",
283303
"updateAvailable": "AO Lab update available!",
284304
"clickToRestart": "Click to restart",
285305
"whatsNew": "What's new?",

packages/seed-bible/app/components/Chips.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,9 @@ const SharePopup = ({
248248
)}
249249
</div>
250250
<span style={{ fontSize: 11, fontWeight: 500, color: "#666" }}>
251-
{p.name === "Copy" && copied ? "Copied!" : p.name}
251+
{p.name === "Copy" && copied
252+
? globalThis.t?.("copied") || "Copied!"
253+
: p.name}
252254
</span>
253255
</button>
254256
))}
@@ -343,7 +345,7 @@ const QRCodeComponent = ({ url = "https://example.com/session/12345" }) => {
343345
fontFamily: "Satoshi",
344346
}}
345347
>
346-
Session QR Code
348+
{globalThis.t?.("sessionQRCode") || "Session QR Code"}
347349
</h2>
348350

349351
<div
@@ -406,7 +408,9 @@ const QRCodeComponent = ({ url = "https://example.com/session/12345" }) => {
406408
color: "white",
407409
}}
408410
>
409-
{copied ? "✓ Copied!" : "Copy Session Link"}
411+
{copied
412+
? globalThis.t?.("copiedSessionLink") || "✓ Copied!"
413+
: globalThis.t?.("copySessionLink") || "Copy Session Link"}
410414
</button>
411415
</div>
412416
</div>

packages/seed-bible/app/components/canvasAiSettings.tsx

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { useSideBarContext } from "app.hooks.sideBar";
1717
import { useBibleContext } from "app.hooks.bibleVariables";
1818

1919
const CanvasAiSettings = () => {
20-
const { sidebarMode, setSideBarMode, closePopupSettings } =
20+
const { sidebarMode, setSideBarMode, closePopupSettings, t } =
2121
useSideBarContext();
2222

2323
// Chat AI
@@ -143,11 +143,11 @@ const CanvasAiSettings = () => {
143143
<div onClick={() => setSideBarMode("settings")} className="blackText">
144144
<MenuIcon name="arrow_back" />
145145
</div>
146-
<div className="softText">Canvas AI settings</div>
146+
<div className="softText">{t("canvasAiSettings")}</div>
147147
<div className="softText">
148148
<MenuIcon name="chevron_right" />
149149
</div>
150-
<div className="softText">Toolbar</div>
150+
<div className="softText">{t("toolbar")}</div>
151151
</div>
152152

153153
<div className="routerTitle blackText">
@@ -157,22 +157,22 @@ const CanvasAiSettings = () => {
157157
<div>AI</div>
158158
</div>
159159

160-
<div className="mediumText">Settings for AI features in the canvas</div>
160+
<div className="mediumText">{t("canvasAiSettingsDesc")}</div>
161161

162162
<div className="ai-chat">
163163
<div
164164
onClick={() => setSwitcher((prev) => (prev === 1 ? null : 1))}
165165
className="ai-chat"
166166
>
167167
<AiChatIcon />
168-
<div className="blackText">AI Chat</div>
168+
<div className="blackText">{t("aiChat")}</div>
169169
<MenuIcon name={`keyboard_arrow_${switcher === 1 ? "up" : "down"}`} />
170170
</div>
171171
</div>
172172
<div style={{ height: "20px" }}></div>
173173
{switcher === 1 && (
174174
<>
175-
<div className="blackText">Select model</div>
175+
<div className="blackText">{t("selectModel")}</div>
176176
<div style={{ height: "20px" }}></div>
177177
<select
178178
value={JSON.stringify(selectedChatAI)}
@@ -196,10 +196,9 @@ const CanvasAiSettings = () => {
196196
})}
197197
</select>
198198
<div style={{ marginTop: "10px" }} className="mediumText">
199-
Different AI models can produce different or better results so feel
200-
free to experiment.
199+
{t("aiModelsExperiment")}
201200
</div>
202-
<div className="blackText">Positive prompt</div>
201+
<div className="blackText">{t("positivePrompt")}</div>
203202
<div style={{ height: "10px" }}></div>
204203
<textarea
205204
style={{ height: "150px", width: "100%" }}
@@ -218,14 +217,14 @@ const CanvasAiSettings = () => {
218217
className="ai-chat"
219218
>
220219
<AiChatIcon />
221-
<div className="blackText">AI Image</div>
220+
<div className="blackText">{t("aiImage")}</div>
222221
<MenuIcon name={`keyboard_arrow_${switcher === 2 ? "up" : "down"}`} />
223222
</div>
224223
</div>
225224
<div style={{ height: "20px" }}></div>
226225
{switcher === 2 && (
227226
<>
228-
<div className="blackText">Select model</div>
227+
<div className="blackText">{t("selectModel")}</div>
229228
<div style={{ height: "20px" }}></div>
230229
<select
231230
value={JSON.stringify(selectedImageAI)}
@@ -249,10 +248,9 @@ const CanvasAiSettings = () => {
249248
})}
250249
</select>
251250
<div style={{ marginTop: "10px" }} className="mediumText">
252-
Different AI models can produce different or better results so feel
253-
free to experiment.
251+
{t("aiModelsExperiment")}
254252
</div>
255-
<div className="blackText">Positive prompt</div>
253+
<div className="blackText">{t("positivePrompt")}</div>
256254
<div style={{ height: "10px" }}></div>
257255
<textarea
258256
style={{ height: "150px", width: "100%" }}
@@ -271,14 +269,14 @@ const CanvasAiSettings = () => {
271269
className="ai-chat"
272270
>
273271
<AiChatIcon />
274-
<div className="blackText">AI Assistant</div>
272+
<div className="blackText">{t("aiAssistant")}</div>
275273
<MenuIcon name={`keyboard_arrow_${switcher === 3 ? "up" : "down"}`} />
276274
</div>
277275
</div>
278276
<div style={{ height: "20px" }}></div>
279277
{switcher === 3 && (
280278
<>
281-
<div className="blackText">Select model</div>
279+
<div className="blackText">{t("selectModel")}</div>
282280
<div style={{ height: "20px" }}></div>
283281
<select
284282
value={JSON.stringify(selectedAssistantAI)}
@@ -301,7 +299,7 @@ const CanvasAiSettings = () => {
301299
);
302300
})}
303301
</select>
304-
<div className="blackText">Select voice</div>
302+
<div className="blackText">{t("selectVoice")}</div>
305303
<div style={{ height: "20px" }}></div>
306304
<select
307305
value={JSON.stringify(selectedAssistantVoice)}

packages/seed-bible/app/components/extensions.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ function SettingsPanel({
6464
}) {
6565
const { t } = useSideBarContext();
6666
const [buttonEnabled, setbuttonEnabled] = useState(true);
67+
const [runInBackground, setRunInBackground] = useState(false);
6768
const [showInToolbar, setShowInToolbar] = useState(false);
6869
const [showInPanel, setShowInPanel] = useState(false);
6970
const [showBelowPage, setShowBelowPage] = useState(false);
@@ -141,6 +142,25 @@ function SettingsPanel({
141142

142143
{expand && (
143144
<div style={sectionStyle}>
145+
<div style={optionStyle}>
146+
<div style={optionLabelStyle}>
147+
<span className="material-symbols-outlined" style={iconStyle}>
148+
play_circle
149+
</span>
150+
<span>{t("runInBackground")}</span>
151+
</div>
152+
<ToggleSwitch
153+
isOn={
154+
(globalThis as any).IsToolRunInBackground &&
155+
(globalThis as any).IsToolRunInBackground(name)
156+
}
157+
onToggle={() => {
158+
(globalThis as any).ToToggleRunInBackground(name);
159+
setRunInBackground((prev) => !prev);
160+
}}
161+
/>
162+
</div>
163+
144164
<div style={optionStyle}>
145165
<div style={optionLabelStyle}>
146166
<span className="material-symbols-outlined" style={iconStyle}>

packages/seed-bible/app/components/icons.tsx

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -95,28 +95,20 @@ export const TabsIcon = (props) => (
9595
);
9696
export const MobileSettingsIcon = (props) => (
9797
<svg
98-
width={16}
99-
height={16}
100-
viewBox="0 0 16 16"
98+
width={25}
99+
height={25}
100+
viewBox="0 0 25 25"
101101
fill="none"
102102
xmlns="http://www.w3.org/2000/svg"
103103
{...props}
104104
>
105-
<g clipPath="url(#clip0_5742_234)">
106-
<path
107-
d="M15 4H12.95C12.7 2.85 11.7 2 10.5 2C9.3 2 8.3 2.85 8.05 4H1V5H8.05C8.3 6.15 9.3 7 10.5 7C11.7 7 12.7 6.15 12.95 5H15V4ZM10.5 6C9.65 6 9 5.35 9 4.5C9 3.65 9.65 3 10.5 3C11.35 3 12 3.65 12 4.5C12 5.35 11.35 6 10.5 6Z"
108-
fill="black"
109-
/>
110-
<path
111-
d="M1 12H3.05C3.3 13.15 4.3 14 5.5 14C6.7 14 7.7 13.15 7.95 12H15V11H7.95C7.7 9.85 6.7 9 5.5 9C4.3 9 3.3 9.85 3.05 11H1V12ZM5.5 10C6.35 10 7 10.65 7 11.5C7 12.35 6.35 13 5.5 13C4.65 13 4 12.35 4 11.5C4 10.65 4.65 10 5.5 10Z"
112-
fill="black"
113-
/>
114-
</g>
115-
<defs>
116-
<clipPath id="clip0_5742_234">
117-
<rect width={16} height={16} fill="white" />
118-
</clipPath>
119-
</defs>
105+
<path
106+
fillRule="evenodd"
107+
clipRule="evenodd"
108+
d="M12.5002 7.59127C9.69537 7.59127 7.42212 9.78876 7.42212 12.5C7.42212 15.2112 9.6954 17.4087 12.5002 17.4087C15.3051 17.4087 17.5784 15.2112 17.5784 12.5C17.5784 9.78876 15.3051 7.59127 12.5002 7.59127ZM14.6168 0.5C14.7034 0.5 14.828 0.509375 14.9702 0.555313C15.2944 0.658438 15.4755 0.882505 15.5144 0.932184C15.6059 1.04844 15.6575 1.16562 15.6887 1.26125C15.8269 1.78718 15.9632 2.31312 16.1005 2.83906C16.117 2.89812 16.1394 2.9628 16.1725 3.03124C16.2787 3.24968 16.4364 3.38843 16.5444 3.46624C16.8209 3.64155 17.0974 3.81592 17.3739 3.99124C17.7039 4.14874 18.034 4.30718 18.364 4.46563C18.4546 4.50781 18.6191 4.57062 18.8343 4.57531H18.8596C19.0309 4.57531 19.1682 4.53781 19.2529 4.50687C19.6852 4.36531 20.1174 4.22468 20.5507 4.08219C20.6139 4.05501 20.7901 3.98469 21.0238 3.98469C21.1124 3.98469 21.2097 3.99501 21.312 4.02126C21.7452 4.13282 21.9555 4.45438 21.9983 4.52281C22.746 5.73593 23.4937 6.94897 24.2414 8.1612C24.2862 8.23339 24.3436 8.34495 24.3777 8.4884C24.4507 8.81091 24.3446 9.0762 24.3203 9.13433C24.2628 9.26933 24.1859 9.37246 24.1178 9.44746C23.7205 9.82997 23.3233 10.2134 22.9261 10.5959C22.8823 10.64 22.8356 10.6925 22.7918 10.7553C22.6526 10.955 22.6097 11.1575 22.5961 11.2859C22.5766 11.7406 22.5562 12.1953 22.5367 12.65C22.5523 12.8693 22.5669 13.0887 22.5825 13.3081C22.5893 13.4046 22.6156 13.5734 22.7197 13.7553C22.8083 13.9109 22.9174 14.0131 22.9914 14.0722C23.336 14.3618 23.6797 14.6515 24.0233 14.9422C24.1022 14.9965 24.3602 15.1906 24.4605 15.5478C24.5792 15.9659 24.3972 16.3034 24.3573 16.3746C23.6485 17.6084 22.9398 18.843 22.232 20.0778C22.1901 20.1519 22.12 20.256 22.0071 20.3553C21.7569 20.5794 21.4658 20.6244 21.4025 20.6328C21.348 20.6394 21.2964 20.6431 21.2477 20.6431C21.162 20.6431 21.0841 20.6328 21.0199 20.6206C20.4776 20.4819 19.9353 20.3422 19.3931 20.2025C19.3317 20.1875 19.2616 20.1753 19.1838 20.1706C19.1584 20.1687 19.1331 20.1678 19.1088 20.1678C18.8946 20.1678 18.7203 20.2259 18.6113 20.2728C18.4438 20.3581 18.2764 20.4434 18.1089 20.5287L18.1265 20.5456C17.5725 20.8784 17.0186 21.2112 16.4656 21.5441C16.3809 21.5956 16.2387 21.6978 16.1209 21.8722C16.0206 22.0213 15.9797 22.1619 15.9603 22.2519L15.6507 23.5419C15.638 23.6347 15.5816 23.945 15.3022 24.2C14.9896 24.485 14.6138 24.5 14.5116 24.5H14.4999C13.0396 24.4756 11.5802 24.4503 10.1189 24.4259C10.0323 24.425 9.90375 24.4138 9.76064 24.365C9.43838 24.2553 9.2612 24.0284 9.22224 23.9778C9.13365 23.8606 9.08399 23.7425 9.05382 23.6469C8.92725 23.1181 8.79875 22.5903 8.67119 22.0616C8.65659 22.0025 8.6342 21.9369 8.60207 21.8684C8.49985 21.6481 8.34506 21.5075 8.23991 21.4278C7.85048 21.1719 7.46009 20.9159 7.07066 20.66C6.8701 20.5569 6.66954 20.4538 6.46899 20.3506C6.38039 20.3056 6.21781 20.2381 6.00265 20.2278C5.98415 20.2269 5.96565 20.2259 5.94618 20.2259C5.78943 20.2259 5.6619 20.2578 5.58208 20.285C5.14592 20.4144 4.70976 20.5447 4.2736 20.6741C4.21129 20.6984 4.04579 20.7594 3.8277 20.7594C3.73132 20.7594 3.62325 20.7472 3.50935 20.7144C3.08 20.5906 2.87947 20.2644 2.8376 20.1941L0.701594 16.4957C0.658756 16.4225 0.604238 16.31 0.575031 16.1647C0.511748 15.8413 0.624683 15.5797 0.651942 15.5216C0.712303 15.3885 0.792135 15.2872 0.863206 15.2141C1.27113 14.8419 1.67905 14.4707 2.08699 14.0976C2.13275 14.0554 2.18045 14.0047 2.22621 13.9429C2.37127 13.7469 2.41995 13.5463 2.43747 13.4179L2.455 13.1816C2.42482 12.5694 2.39464 11.9572 2.36543 11.3451C2.35959 11.2485 2.3372 11.0788 2.23789 10.8941C2.15222 10.7376 2.04416 10.6326 1.97211 10.5726C1.63428 10.2763 1.29744 9.97913 0.958631 9.6829C0.88172 9.62665 0.627624 9.4279 0.53319 9.0679C0.425125 8.6479 0.613022 8.31415 0.653913 8.24477C1.38895 7.02416 2.12302 5.80349 2.85708 4.58285C2.90089 4.51067 2.97294 4.40754 3.08685 4.30911C3.34288 4.09161 3.63399 4.05224 3.69824 4.04473C3.744 4.0391 3.78878 4.03723 3.83065 4.03723C3.92605 4.03723 4.01076 4.04848 4.07988 4.06441C4.61924 4.21441 5.15858 4.36348 5.69795 4.51348C5.75831 4.52941 5.82841 4.54348 5.90629 4.5491C5.94037 4.55285 5.97347 4.55379 6.0056 4.55379C6.2081 4.55379 6.37459 4.50223 6.48168 4.45816C6.90226 4.25473 7.32382 4.05036 7.7444 3.84597L8.31686 3.48878C8.40059 3.43534 8.54078 3.33128 8.65469 3.15504C8.75205 3.00504 8.79197 2.86252 8.80949 2.77252C8.90393 2.34127 9.00031 1.90908 9.09571 1.47785C9.10642 1.38503 9.15704 1.07285 9.4316 0.814102C9.75191 0.511295 10.1452 0.500039 10.2289 0.500039H14.61H14.6168L14.6168 0.5ZM12.5002 8.68159C14.6781 8.68159 16.4501 10.3944 16.4501 12.5C16.4501 14.6056 14.6782 16.3184 12.5002 16.3184C10.3223 16.3184 8.5504 14.6056 8.5504 12.5C8.5504 10.3944 10.3223 8.68159 12.5002 8.68159ZM14.6109 1.59128H10.2289L10.2221 1.64284L10.1987 1.70565L9.91545 2.98816C9.8619 3.25442 9.75968 3.50565 9.61071 3.73536C9.43839 4.00161 9.21154 4.22568 8.93798 4.3991L8.35677 4.76284L8.30419 4.79472L8.24967 4.8219L7.39974 5.23346L6.98696 5.43314L6.95483 5.44908L6.92173 5.46221C6.62674 5.58408 6.31811 5.64502 6.0056 5.64502C5.94135 5.64502 5.87514 5.64221 5.80797 5.63658C5.67264 5.62533 5.53536 5.60189 5.40005 5.56627L4.59004 5.34127L3.83357 5.13033L2.44721 7.43471L1.62943 8.79316L1.67129 8.82316L1.71705 8.87566L2.19116 9.29098L2.72175 9.75785C2.93302 9.93598 3.10632 10.1479 3.2358 10.386C3.3867 10.6625 3.47432 10.9728 3.49183 11.2841L3.58238 13.13L3.5853 13.1947L3.58043 13.2585L3.56388 13.4947L3.56096 13.5294L3.55609 13.565C3.50449 13.9325 3.36138 14.2841 3.14428 14.5776C3.0625 14.6872 2.97099 14.7894 2.8707 14.8832L2.6312 15.1016L1.68683 15.9622L3.82283 19.6616L3.87346 19.6419L3.94161 19.6316L5.23742 19.2453C5.46718 19.1722 5.7057 19.1356 5.94619 19.1356C5.98318 19.1356 6.02018 19.1366 6.05912 19.1384C6.38332 19.1544 6.70459 19.2388 6.99083 19.3841L7.30043 19.5425L7.60028 19.6972L7.6548 19.7244L7.70542 19.7581L8.02768 19.9691L8.8737 20.525L8.90388 20.5447L8.93211 20.5663C9.23588 20.795 9.47828 21.0903 9.63211 21.4203C9.68955 21.545 9.73434 21.6725 9.76744 21.8028L9.93684 22.5041L10.1374 23.3328L12.2393 23.3703L14.5194 23.4088L14.5262 23.3572L14.5506 23.2944L14.8582 22.0166C14.9166 21.7513 15.0237 21.5019 15.1756 21.276C15.3547 21.0116 15.5845 20.7922 15.862 20.6225L16.341 20.3347L16.264 20.2588L17.5842 19.5632L17.9717 19.3653L18.0856 19.3082L18.1177 19.2913L18.1508 19.2772C18.4585 19.1441 18.7807 19.0775 19.1088 19.0775C19.1575 19.0775 19.2072 19.0785 19.2578 19.0813C19.3999 19.0907 19.5391 19.1122 19.6754 19.1469L21.2439 19.5491L23.3711 15.8449L23.3273 15.814L23.2806 15.7643L22.2593 14.9018C22.0441 14.7274 21.867 14.5184 21.7316 14.2821C21.5759 14.0084 21.4804 13.699 21.4571 13.3859L21.4337 13.0512L21.4103 12.7249L21.4064 12.664L21.4094 12.604L21.4152 12.4587L21.4688 11.2399L21.4697 11.2053L21.4736 11.1706C21.5145 10.8012 21.6469 10.4468 21.8562 10.1459C21.9341 10.0343 22.0227 9.93026 22.1181 9.83463L22.7042 9.26931L23.2728 8.72086L21.0297 5.08151L20.98 5.10213L20.9129 5.11526L19.6268 5.53619C19.3805 5.62244 19.1215 5.66651 18.8596 5.66651H18.846L18.809 5.66557C18.4828 5.65901 18.1684 5.58494 17.8734 5.44807L16.8735 4.969L16.8132 4.93994L16.7567 4.90432L16.3069 4.61932L15.9263 4.37932L15.8961 4.36057L15.8669 4.33901C15.5592 4.11588 15.3119 3.82433 15.1523 3.49713C15.0929 3.37432 15.0442 3.24588 15.0092 3.11558L14.7911 2.27839L14.6109 1.59128Z"
109+
fill="#333333"
110+
stroke="#333333"
111+
/>
120112
</svg>
121113
);
122114

packages/seed-bible/app/components/settings.tsx

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ const SettingItemWrapper = ({
7070
e.stopPropagation();
7171
toggleVisibility(fullKey);
7272
}}
73-
title={isHidden ? "Show item" : "Hide item"}
73+
title={
74+
isHidden
75+
? (globalThis as any).t?.("showItem") || "Show item"
76+
: (globalThis as any).t?.("hideItem") || "Hide item"
77+
}
7478
>
7579
<span className="material-symbols-outlined">
7680
{isHidden ? "visibility" : "visibility_off"}
@@ -1245,7 +1249,10 @@ export const SubscriptionsSetting = ({
12451249
</div>
12461250
) : (
12471251
<div style={{ justifyContent: "center" }} className="activeAccount">
1248-
<div className="softText">You haven't subscribed to anyone yet.</div>
1252+
<div className="softText">
1253+
{(globalThis as any).t?.("noSubscriptionsYet") ||
1254+
"You haven't subscribed to anyone yet."}
1255+
</div>
12491256
</div>
12501257
)}
12511258

@@ -1258,17 +1265,20 @@ export const SubscriptionsSetting = ({
12581265
onClick={() => setSubscribe(true)}
12591266
className="create-profile-btn"
12601267
>
1261-
+ Add Subscription
1268+
{(globalThis as any).t?.("addSubscription") || "+ Add Subscription"}
12621269
</button>
12631270
) : (
12641271
<div style={{ width: "100%" }}>
12651272
<div style={{ marginBottom: "8px" }} className="blackText">
1266-
Enter User ID
1273+
{(globalThis as any).t?.("enterUserId") || "Enter User ID"}
12671274
</div>
12681275
<div style={{ display: "flex", alignItems: "center", gap: "10px" }}>
12691276
<input
12701277
style={{ height: "32px", flex: 1 }}
1271-
placeholder="Enter user ID..."
1278+
placeholder={
1279+
(globalThis as any).t?.("enterUserIdPlaceholder") ||
1280+
"Enter user ID..."
1281+
}
12721282
className="selectInput"
12731283
value={searchFor}
12741284
disabled={subscribing}

packages/seed-bible/app/components/sideBar.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,6 +1630,20 @@ function SideBar({ panelsNumber }) {
16301630
>
16311631
{<MenuIcon name={"person_add"} />}
16321632
</span> */}
1633+
<button
1634+
className="mobile-icon-button"
1635+
onClick={(e) => {
1636+
e.stopPropagation();
1637+
os.log("Opening mobile settings", setOpenOnMobile);
1638+
setOpenOnMobile(true);
1639+
setSidebarWidth(280);
1640+
setCollapsed(false);
1641+
setSideBarMode("settings");
1642+
}}
1643+
title="Settings"
1644+
>
1645+
<MobileSettingsIcon />
1646+
</button>
16331647
<span
16341648
className="mobile-header-icon"
16351649
onClick={() => {

0 commit comments

Comments
 (0)