Skip to content

Commit fb5e7fc

Browse files
authored
Merge pull request #72 from MohamedAlDeep/main
fixed title (overflow & size)
2 parents 03af7a5 + 094614b commit fb5e7fc

4 files changed

Lines changed: 15 additions & 3 deletions

File tree

src/components/Error/ErrorCard.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { useState, useEffect } from "react";
22
import { MdKeyboardArrowLeft, MdOutlineArrowRightAlt } from "react-icons/md";
33
import ErrorSolutions from "./ErrorSolutions";
44
import ErrorType from "./ErrorType";
5+
import './css/style.css';
56

67
function ErrorCard({ error }) {
78

@@ -30,6 +31,7 @@ function ErrorCard({ error }) {
3031

3132
return (
3233
<div
34+
id="main-div"
3335
className={`py-4 mb-4 col-span-12 md:col-span-6 xl:col-span-4 px-2 md:px-6 border-l-4 rounded-lg items-start bg-dark-secondary flex flex-col ${item === "add"
3436
? "border-[#4024e0]"
3537
: item === "commit"
@@ -43,7 +45,7 @@ function ErrorCard({ error }) {
4345
: "border-[#7e1aa5]"
4446
}`}
4547
>
46-
<h3 className="text-lg font-medium">{error.title}</h3>
48+
<h3 className="title">{error.title}</h3>
4749

4850
<ErrorType type={error.type} />
4951

src/components/Error/css/style.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
/*# sourceMappingURL=style.css.map */
1+
h3 {
2+
max-width: 100%;
3+
overflow-wrap: break-word;
4+
font-size: 15px;
5+
}/*# sourceMappingURL=style.css.map */

src/components/Error/css/style.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
h3{
3+
max-width: 100%;
4+
overflow-wrap: break-word;
5+
font-size: 15px;
6+
}

0 commit comments

Comments
 (0)