Skip to content

Commit

Permalink
Fix: responsiveness of options page
Browse files Browse the repository at this point in the history
  • Loading branch information
amasin76 committed Oct 1, 2023
1 parent 781deab commit 50f23f3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
8 changes: 0 additions & 8 deletions src/pages/options/Options.css
Original file line number Diff line number Diff line change
@@ -1,8 +0,0 @@
.container {
width: 100%;
height: 50vh;
font-size: 2rem;
display: flex;
align-items: center;
justify-content: center;
}
3 changes: 2 additions & 1 deletion src/pages/options/Options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useState, useEffect } from "react";
import themeStorage from "@src/shared/storages/themeStorage";
import UserStyle from "./components/userStyle/";
import "@assets/style/theme.scss";
import "./Options.css";

const Options: React.FC = () => {
const [theme, setTheme] = useState<"light" | "dark">("dark");
Expand All @@ -14,7 +15,7 @@ const Options: React.FC = () => {
}, []);

return (
<div className="container h-screen mx-auto px-4 sm:px-6 lg:px-60 py-5 bg-gray-900 text-white">
<div className="min-h-screen lg:px-60 md:px-10 sm:px-2 py-5 bg-gray-900 text-white">
<UserStyle />
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/options/components/userStyle/Background.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const Background: React.FC = () => {
<Switch checked={bgEnabled} onChange={handleBackground()} />
</div>
{bgEnabled && (
<div className="grid grid-cols-3 justify-between gap-y-4 ml-4">
<div className="flex flex-wrap gap-2 ml-4">
{images.map((src, index) => (
<ImagePreview
key={index}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/options/components/userStyle/Custom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const Custom: React.FC = () => {
<Switch checked={customEnabled} onChange={handleCustom()} />
</div>
{customEnabled && (
<div className="inline-flex mx-4 gap-8 text-gray-300">
<div className="inline-flex flex-wrap mx-4 gap-8 text-gray-300">
<div className="flex flex-1 items-center gap-4">
<h4 className="text-xl">CSS</h4>
<input
Expand Down
1 change: 1 addition & 0 deletions src/pages/options/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
<title>Options</title>
</head>

Expand Down

0 comments on commit 50f23f3

Please sign in to comment.