mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-21 19:53:50 +01:00
[client] Make switch layout a toggle instead of a dropdown
This commit is contained in:
parent
cd48af6393
commit
00b8622612
@ -737,7 +737,7 @@ instanceTicker: "Server information of posts"
|
||||
waitingFor: "Waiting for {x}"
|
||||
random: "Random"
|
||||
system: "System"
|
||||
switchUi: "Layout"
|
||||
switchUi: "Switch layout"
|
||||
desktop: "Desktop"
|
||||
clip: "Clip"
|
||||
createNew: "Create new"
|
||||
@ -2135,4 +2135,4 @@ _cwStyle:
|
||||
classic: "Classic (Misskey/Foundkey-like)"
|
||||
alternative: "Alternative (Firefish-like)"
|
||||
alwaysExpandCws: "Always expand posts with content warnings"
|
||||
hideFromHome: "Hide from home timeline"
|
||||
hideFromHome: "Hide from home timeline"
|
||||
|
@ -111,27 +111,13 @@ export const navbarItemDef = reactive({
|
||||
title: "switchUi",
|
||||
icon: "ph-layout ph-bold ph-lg",
|
||||
action: (ev) => {
|
||||
os.popupMenu(
|
||||
[
|
||||
{
|
||||
text: i18n.ts.default,
|
||||
active: ui === "default" || ui === null,
|
||||
action: () => {
|
||||
localStorage.setItem("ui", "default");
|
||||
unisonReload();
|
||||
},
|
||||
},
|
||||
{
|
||||
text: i18n.ts.deck,
|
||||
active: ui === "deck",
|
||||
action: () => {
|
||||
localStorage.setItem("ui", "deck");
|
||||
unisonReload();
|
||||
},
|
||||
},
|
||||
],
|
||||
ev.currentTarget ?? ev.target,
|
||||
);
|
||||
if (ui === "default") {
|
||||
localStorage.setItem("ui", "deck");
|
||||
unisonReload();
|
||||
} else {
|
||||
localStorage.setItem("ui", "default");
|
||||
unisonReload();
|
||||
}
|
||||
},
|
||||
},
|
||||
help: {
|
||||
|
Loading…
Reference in New Issue
Block a user