mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-08 02:52:07 +08:00
feat(notice): persist toast position preference (#5621)
* feat(notice): persist toast position preference * docs: Changelog.md
This commit is contained in:
@@ -190,6 +190,42 @@ export const LayoutViewer = forwardRef<DialogRef>((_, ref) => {
|
||||
</GuardState>
|
||||
</Item>
|
||||
|
||||
<Item>
|
||||
<ListItemText
|
||||
primary={t("settings.components.verge.layout.fields.toastPosition")}
|
||||
/>
|
||||
<GuardState
|
||||
value={verge?.notice_position ?? "top-right"}
|
||||
onCatch={onError}
|
||||
onFormat={(e: any) => e.target.value}
|
||||
onChange={(value) => onChangeData({ notice_position: value })}
|
||||
onGuard={(value) => patchVerge({ notice_position: value })}
|
||||
>
|
||||
<Select size="small" sx={{ width: 180, "> div": { py: "7.5px" } }}>
|
||||
<MenuItem value="top-right">
|
||||
{t(
|
||||
"settings.components.verge.layout.options.toastPosition.topRight",
|
||||
)}
|
||||
</MenuItem>
|
||||
<MenuItem value="top-left">
|
||||
{t(
|
||||
"settings.components.verge.layout.options.toastPosition.topLeft",
|
||||
)}
|
||||
</MenuItem>
|
||||
<MenuItem value="bottom-right">
|
||||
{t(
|
||||
"settings.components.verge.layout.options.toastPosition.bottomRight",
|
||||
)}
|
||||
</MenuItem>
|
||||
<MenuItem value="bottom-left">
|
||||
{t(
|
||||
"settings.components.verge.layout.options.toastPosition.bottomLeft",
|
||||
)}
|
||||
</MenuItem>
|
||||
</Select>
|
||||
</GuardState>
|
||||
</Item>
|
||||
|
||||
<Item>
|
||||
<ListItemText
|
||||
primary={
|
||||
|
||||
Reference in New Issue
Block a user