Skip to content

Commit de9e8dd

Browse files
committed
change close button style for backdrops
1 parent ef8bf0a commit de9e8dd

File tree

3 files changed

+27
-16
lines changed

3 files changed

+27
-16
lines changed

ui/src/Components/DashBoard/Repository/GitComponents/GitOperation/GitOperationComponent.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import "../../../../styles/GitOperations.css";
77
import CommitComponent from "./CommitComponent";
88
import PushComponent from "./PushComponent";
99
import StageComponent from "./StageComponent";
10+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
1011

1112
export default function GitOperationComponent(props) {
1213
library.add(fab);
@@ -435,16 +436,18 @@ export default function GitOperationComponent(props) {
435436
}}
436437
>
437438
{actionComponent(action)}
438-
439439
<div
440-
className="git-ops--backdrop--close"
440+
className="w-14 h-14 mr-5 mt-6 rounded-full bg-red-500 text-white flex justify-center items-center shadow cursor-pointer fixed right-0 top-0"
441441
onClick={() => {
442442
setAction("");
443443
const localReload = viewReload + 1;
444444
setViewReload(localReload);
445445
}}
446446
>
447-
X
447+
<FontAwesomeIcon
448+
className="flex text-center text-3xl my-auto"
449+
icon={["fas", "times"]}
450+
></FontAwesomeIcon>
448451
</div>
449452
</div>
450453
) : null}

ui/src/Components/DashBoard/Repository/RepoComponents/RepoDetails/FileExplorerComponent.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,14 +337,16 @@ export default function FileExplorerComponent(props) {
337337
}}
338338
>
339339
<div
340-
className="close-btn-round"
340+
className="w-14 h-14 mr-5 mt-6 rounded-full bg-red-500 text-white flex justify-center items-center shadow cursor-pointer fixed right-0 top-0"
341341
onClick={() => {
342342
setCodeViewToggle(false);
343343
}}
344344
>
345-
X
345+
<FontAwesomeIcon
346+
className="flex text-center text-3xl my-auto"
347+
icon={["fas", "times"]}
348+
></FontAwesomeIcon>
346349
</div>
347-
348350
<div className="code-view-area">
349351
{memoizedCodeFileViewComponent}
350352
</div>

ui/src/Components/DashBoard/Repository/RepoComponents/RepoDetails/RepositoryDetails.js

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -229,20 +229,23 @@ export default function RepositoryDetails(props) {
229229
}
230230
}}
231231
>
232-
<div
233-
className="commitlogs-view"
234-
onClick={() => {
235-
setShowCommitLogs(false);
236-
}}
237-
>
238-
X
239-
</div>
240232
<div
241233
id="commit-log__cards"
242234
className="w-full xl:w-3/4 lg:w-5/6 md:w-11/12 sm:w-11/12 h-full block mx-auto my-auto mt-10 mb-10"
243235
>
244236
{memoizedCommitLogComponent}
245237
</div>
238+
<div
239+
className="w-14 h-14 mr-5 mt-6 rounded-full bg-red-500 text-white flex justify-center items-center shadow cursor-pointer fixed right-0 top-0"
240+
onClick={() => {
241+
setShowCommitLogs(false);
242+
}}
243+
>
244+
<FontAwesomeIcon
245+
className="flex text-center text-3xl my-auto"
246+
icon={["fas", "times"]}
247+
></FontAwesomeIcon>
248+
</div>
246249
</div>
247250
</>
248251
) : null}
@@ -260,15 +263,18 @@ export default function RepositoryDetails(props) {
260263
>
261264
<>{action ? actionComponentPicker() : null}</>
262265
<div
263-
className="action-view"
266+
className="w-14 h-14 mr-5 mt-6 rounded-full bg-red-500 text-white flex justify-center items-center shadow cursor-pointer fixed top-0 right-0"
264267
onClick={() => {
265268
setBackdropToggle(false);
266269
setCodeViewToggle(false);
267270
setReloadView(true);
268271
setAction("");
269272
}}
270273
>
271-
X
274+
<FontAwesomeIcon
275+
className="flex text-center text-3xl my-auto"
276+
icon={["fas", "times"]}
277+
></FontAwesomeIcon>
272278
</div>
273279
</div>
274280
) : null}

0 commit comments

Comments
 (0)