Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update css #355

Merged
merged 2 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.fallback {
width: 500px;
}
3 changes: 2 additions & 1 deletion ui/src/components/General/FallbackComponent/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Alert, Button, Card } from "antd";
import React from "react";
import style from "./FallbackComponent.module.scss";

const FallbackComponent: React.FC = () => {
return (
<Card style={{ width: "500px" }}>
<Card className={style.fallback}>
<Alert
message={"Something went wrong"}
description={
Expand Down
4 changes: 1 addition & 3 deletions ui/src/data/menuData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { IconName } from "components/General/Icon/utils/types";
import { getItem } from "components/Layouts/Menu/utils/helper";
import { routesById } from "data/routeData";

const IN_DEVELOPMENT = import.meta.env.DEV;

export const MENU_ITEMS = [
{
name: "Newsfeed",
Expand Down Expand Up @@ -198,7 +196,7 @@ export const MENU_ITEMS = [
name: routesById.githubissue.title,
url: routesById.githubissue.path,
icon: "Bug",
show: IN_DEVELOPMENT,
show: true,
},
],
},
Expand Down
3 changes: 3 additions & 0 deletions ui/src/pages/Automation/GithubIssue/GithubIssue.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.gi {
height: 100%;
}
3 changes: 2 additions & 1 deletion ui/src/pages/Automation/GithubIssue/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { steps } from "./utils/constants";
import { IssueType, SavedIssueType } from "./types";
import ErrorComponent from "components/General/ErrorComponent";
import DownloadCsv from "./components/DownloadCsv";
import style from "./GithubIssue.module.scss";

const GithubIssue: React.FC = () => {
//? input state
Expand Down Expand Up @@ -141,7 +142,7 @@ const GithubIssue: React.FC = () => {
<CsvTable data={fileData} />
</Card>

<Card title="Saved Issue" style={{ height: "100%" }}>
<Card title="Saved Issue" className={style.gi}>
{isError && (
<>
<ErrorComponent
Expand Down
4 changes: 4 additions & 0 deletions ui/src/pages/Colors/ColorPicker/ColorPicker.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,7 @@
flex-direction: column;
justify-content: center;
}

.cf {
cursor: pointer;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Tag } from "antd";
import { DATA_OPTIONS } from "pages/Colors/ColorPicker/utils/constants";
import { FormatType } from "pages/Colors/ColorPicker/utils/types";
import style from "pages/Colors/ColorPicker/ColorPicker.module.scss";

const ColorFormatTags = ({
currentFormat,
Expand All @@ -14,7 +15,7 @@ const ColorFormatTags = ({
onClick={() => onSelect(option.value)}
color={currentFormat === option.value ? "success" : "default"}
key={option.value}
style={{ cursor: "pointer" }}
className={style.cf}
>
{option.label}
</Tag>
Expand Down
5 changes: 5 additions & 0 deletions ui/src/pages/Footer/PrivacyPolicy/PrivacyPolicy.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.pp {
&__list {
list-style-type: disc;
}
}
3 changes: 2 additions & 1 deletion ui/src/pages/Footer/PrivacyPolicy/utils/constants.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ColumnsType } from "antd/es/table";
import style from "pages/Footer/PrivacyPolicy/PrivacyPolicy.module.scss";

interface PurposeTableDataType {
purpose: string;
Expand Down Expand Up @@ -71,7 +72,7 @@ const ACTIVITY_COLUMNS: ColumnsType<ActivityTableDataType> = [
dataIndex: "categories",
key: "categories",
render: (categories: string[]) => (
<ul style={{ listStyleType: "disc" }}>
<ul className={style.pp__list}>
{categories.map((cat) => (
<li key={cat}>{cat}</li>
))}
Expand Down
5 changes: 2 additions & 3 deletions ui/src/pages/Home/Home.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
&__container {
display: flex;
flex-direction: column;
gap: 50px;
gap: var(--bt-size-50);
}

&__hero {
display: flex;
flex-direction: row;
justify-content: space-between;
gap: 100px;
gap: var(--bt-size-100);
&_text {
display: flex;
flex: 2;
Expand All @@ -23,7 +23,6 @@
gap: var(--bt-size-10);
&_title {
text-align: left;
// font-family: var(--font-pixelify-sans);
}
&_paragraph {
text-align: left;
Expand Down
1 change: 0 additions & 1 deletion ui/src/pages/Markdown/MdTableGenerator/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ const TableGenerator: React.FC = () => {
value={output}
onChange={(val) => setOutput(val || "")}
height="100%"
style={{ fontSize: "52" }}
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@
margin-top: var(--bt-size-24);
}
}

&__textarea {
height: calc(100dvh - 290px) !important;
}
}
8 changes: 2 additions & 6 deletions ui/src/pages/Markdown/TableOfContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,7 @@ const TableOfContent: React.FC = () => {
</CopyInput>
<Form.Item label="Content">
<TextArea
style={{
height: "calc(100dvh - 290px)",
}}
className={style.toc__textarea}
placeholder=""
value={markdown}
onChange={(event) =>
Expand All @@ -140,9 +138,7 @@ const TableOfContent: React.FC = () => {
<Form.Item label="Output">
<TextArea
value={tableOfContents}
style={{
height: "calc(100vh - 290px)", // corrected "100dvh" to "100vh"
}}
className={style.toc__textarea}
autoSize={false}
/>
</Form.Item>
Expand Down
10 changes: 10 additions & 0 deletions ui/src/pages/Tools/Diffchecker/Diffchecker.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,14 @@
justify-content: center;
padding: var(--bt-size-20) 0;
}

&__part {
white-space: pre-wrap;
}
&__removed {
background-color: salmon;
}
&__added {
background-color: lightgreen;
}
}
25 changes: 13 additions & 12 deletions ui/src/pages/Tools/Diffchecker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import React, { useState } from "react";
import { diffLines, Change } from "diff";
import { ResponsiveButton } from "components/General/FormComponents";
import style from "./Diffchecker.module.scss";
import { classNames } from "utils/helper-functions/string";

const { TextArea } = Input;

Expand Down Expand Up @@ -62,12 +63,12 @@ const Diffchecker: React.FC = () => {
.map((part, index) => (
<span
key={index}
style={{
backgroundColor: part.removed
? "salmon"
: "white",
whiteSpace: "pre-wrap",
}}
className={classNames(
style.diffchecker__part,
part.removed
? style.diffchecker__removed
: ""
)}
>
{part.value}
</span>
Expand All @@ -84,12 +85,12 @@ const Diffchecker: React.FC = () => {
.map((part, index) => (
<span
key={index}
style={{
backgroundColor: part.added
? "lightgreen"
: "white",
whiteSpace: "pre-wrap",
}}
className={classNames(
style.diffchecker__part,
part.added
? style.diffchecker__added
: ""
)}
>
{part.value}
</span>
Expand Down
8 changes: 8 additions & 0 deletions ui/src/pages/Tools/Sorting/Sorting.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,12 @@
justify-content: space-between;
}
}

&__input_textarea {
height: calc(100dvh - 210px);
}

&__output_textarea {
height: calc(100dvh - 300px) !important;
}
}
8 changes: 2 additions & 6 deletions ui/src/pages/Tools/Sorting/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ const Sorting: React.FC = () => {
<TextArea
placeholder="Enter data separated by space or comma or new line"
value={input}
style={{
height: "calc(100dvh - 210px)",
}}
className={style.sort__input_textarea}
onChange={(event) => {
setInput(event.currentTarget.value);
}}
Expand Down Expand Up @@ -110,9 +108,7 @@ const Sorting: React.FC = () => {
<TextArea
placeholder="output"
value={output}
style={{
height: "calc(100dvh - 300px)",
}}
className={style.sort__output_textarea}
readOnly
data-gramm={false}
/>
Expand Down
10 changes: 0 additions & 10 deletions ui/src/styles/typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@
font-style: normal;
}

/* @font-face {
font-family: "FreightText";
src: url("./src/assets/fonts/FreightText-Light.otf") format("truetype");
font-weight: 400;
font-style: normal;
} */

/* --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
Cantarell, Noto Sans, sans-serif; */

--font-pixelify-sans: "AAA", system-ui, -apple-system, Segoe UI, Roboto,
Ubuntu, Cantarell, Noto Sans, sans-serif, Aacute;
}