Skip to content

Commit

Permalink
Remove codes layout #333
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Nov 23, 2024
1 parent 877451f commit ab115c3
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 51 deletions.
54 changes: 27 additions & 27 deletions core/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "cores"
name = "authme"
version = "0.0.0"
description = "Simple cross-platform two-factor (2FA) authenticator app for desktop."
authors = ["Lőrik Levente"]
Expand Down
1 change: 1 addition & 0 deletions interface/utils/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ declare global {
/** @deprecated Removed in 6.0.0 */
blurCodes: boolean
sortCodes: number
/** @deprecated Removed in 6.0.0 */
codesLayout: number
}

Expand Down
4 changes: 2 additions & 2 deletions interface/windows/codes/codes.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="transparent-900 main m-auto my-20 w-3/5 rounded-2xl p-10 text-center sm:w-4/5">
<div class="transparent-900 main m-auto my-20 w-4/5 rounded-2xl p-10 text-center sm:w-4/5">
<h1>Authme</h1>
<div class="searchContainer mx-auto mb-5 mt-10 hidden justify-center px-10">
<div class="mx-auto flex items-center justify-center">
Expand All @@ -11,7 +11,7 @@
</div>
</div>

<div class="content mx-auto flex flex-col flex-wrap items-center justify-center gap-10 rounded-2xl p-10 sm:w-full">
<div class="content mx-auto flex flex-row flex-wrap items-center justify-center gap-10 rounded-2xl p-10 sm:w-full">
<div class="importCodes transparent-800 hidden w-full max-w-2xl rounded-2xl p-5">
<h2>{language.codes.importCodes}</h2>
<h3>{language.codes.importCodesText}</h3>
Expand Down
11 changes: 0 additions & 11 deletions interface/windows/codes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,17 +161,6 @@ export const generateCodeElements = (data: LibImportFile) => {

search()
}

if (settings.settings.codesLayout === 0) {
const main = document.querySelector(".main")
const content = document.querySelector(".content")

main.classList.remove("w-3/5")
main.classList.add("w-4/5")

content.classList.remove("flex-col")
content.classList.add("flex-row")
}
}

const refreshCodes = (secrets: string[]) => {
Expand Down
10 changes: 0 additions & 10 deletions interface/windows/settings/settings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,6 @@
</div>
</div>

<div class="transparent-800 mb-5 flex w-full flex-row items-center justify-between rounded-xl p-5 text-left">
<div>
<h2>{language.settings.codesLayout}</h2>
<h3>{language.settings.codesLayoutText}</h3>
</div>
<div class="ml-20 flex gap-3">
<Select options={["Grid", "List"]} setting={"codesLayout"} />
</div>
</div>

<div class="transparent-800 mb-5 flex w-full flex-row items-center justify-between rounded-xl p-5 text-left">
<div>
<h2>{language.settings.sortCodes}</h2>
Expand Down

0 comments on commit ab115c3

Please sign in to comment.