Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Interactive Online Exhibition Environment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eliisabk
Interactive Online Exhibition Environment
Merge requests
!70
Resolve "Fix issues from user feedback"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Fix issues from user feedback"
182-fix-issues-from-user-feedback
into
main
Overview
0
Commits
5
Pipelines
1
Changes
6
Merged
eliisabk
requested to merge
182-fix-issues-from-user-feedback
into
main
2 months ago
Overview
0
Commits
5
Pipelines
1
Changes
6
Expand
Fixes some small issues
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
1b4d4485
5 commits,
2 months ago
6 files
+
64
−
37
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
src/app/(admin)/dashboard/[exhibitionId]/page.tsx
+
10
−
6
Options
@@ -48,9 +48,12 @@ const ExhibitionEditorPage = () => {
const
validHTMLContent
=
convertToValidHTML
(
updatedContent
);
setEditorState
((
prevState
)
=>
{
if
(
!
prevState
)
return
null
;
const
isContentChanged
=
prevState
.
content
!==
validHTMLContent
;
if
(
isContentChanged
)
{
setIsDirty
(
true
);
}
return
{
...
prevState
,
content
:
validHTMLContent
};
});
setIsDirty
(
true
);
}
function
handleBackgroundColorChange
(
color
:
string
)
{
@@ -100,16 +103,17 @@ const ExhibitionEditorPage = () => {
{
isDetailsModalOpen
&&
editorState
&&
(
<
div
className
=
"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50"
>
<
div
className
=
"w-[600px] rounded-lg bg-white p-6 shadow-lg"
>
<
h2
className
=
"mb-4 text-xl font-bold"
>
{
t
(
"
exhibitionDetails
"
)
}
</
h2
>
<
ExhibitionDataForm
exhibition
=
{
editorState
}
/>
<
div
className
=
"relative h-[90%] w-[90%] max-w-lg rounded-lg bg-white p-4 shadow-lg md:p-6"
>
<
button
type
=
"button"
className
=
"
mt-4 rounded-md bg-gray-500 px-4 py
-2 text-
sm
text-
white
hover:
bg
-gray-600
md:text-base
"
className
=
"
absolute right-4 top
-2 text-
4xl
text-
gray-500
hover:
text
-gray-600"
onClick
=
{
()
=>
setIsDetailsModalOpen
(
false
)
}
aria-label
=
"Close"
>
{
t
(
"
close
"
)
}
×
</
button
>
<
h2
className
=
"mb-4 text-xl font-bold"
>
{
t
(
"
exhibitionDetails
"
)
}
</
h2
>
<
ExhibitionDataForm
exhibition
=
{
editorState
}
/>
</
div
>
</
div
>
)
}
Loading