Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Frontend-MECRED
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
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
MECRED
Frontend-MECRED
Commits
a77969cd
Commit
a77969cd
authored
1 month ago
by
Richard Fernando Heise Ferreira
Browse files
Options
Downloads
Plain Diff
Merge branch 'issue-349/FIX-mobile-embed-resources' into 'develop'
Issue
#349
: FIX mobile embed resources See merge request
!319
parents
caaae2e8
a280fe6d
No related branches found
No related tags found
1 merge request
!319
Issue #349: FIX mobile embed resources
Pipeline
#42560
passed
1 month ago
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/components/Embed.js
+9
-7
9 additions, 7 deletions
src/app/components/Embed.js
src/app/components/ShareModal.js
+1
-1
1 addition, 1 deletion
src/app/components/ShareModal.js
with
10 additions
and
8 deletions
src/app/components/Embed.js
+
9
−
7
View file @
a77969cd
...
...
@@ -31,22 +31,24 @@ export default function Embed({ open, onClose, learningObject }) {
onClose
=
{
onClose
}
className
=
"
flex justify-center place-items-center m-6
"
>
<
div
className
=
"
flex flex-col bg-ice-HC-dark p-6 rounded-lg outline outline-1 outline-ice-HC-white
"
>
<
div
className
=
"
flex justify-center text-xl font-bold text-darkGray-HC-white m-5
"
>
Recurso
Incorporado
<
/div
>
<
div
className
=
"
flex flex-col bg-ice-HC-dark p-6
max-md:p-0
rounded-lg outline outline-1 outline-ice-HC-white
max-sm:p-[30px] max-sm:px-[20%]
"
>
<
div
className
=
"
flex justify-center text-xl font-bold text-darkGray-HC-white m-5
items-center
"
>
Recurso
Incorporado
<
/div
>
<
div
className
=
"
flex flex-row justify-center
"
>
<
div
className
=
"
flex flex-row
"
>
<
div
className
=
"
flex max-md:justify-center max-lg:hidden
"
>
<
ResourcePreview
learningObject
=
{
learningObject
}
setSource
=
{
setSource
}
/
>
<
div
className
=
"
flex w-[600px] items-center text-darkGray-HC-white justify-center m-5 outline outline-1 outline-darkGray-HC-white rounded-lg p-5
"
>
<
/div
>
<
div
className
=
"
flex w-[450px] max-md:w-[450px] max-sm:hidden items-center text-darkGray-HC-white justify-center m-5 outline outline-1 outline-darkGray-HC-white rounded-lg p-[50px]
"
>
{
iframe
}
<
/div
>
<
/div
>
<
div
className
=
"
flex flex-col p-3 justify-end
"
>
<
div
className
=
"
flex text-base font-bold text-darkGray-HC-white justify-end
"
>
<
div
className
=
"
flex text-base font-bold text-darkGray-HC-white justify-end
max-md:justify-center
"
>
<
Button
disableElevation
variant
=
"
outlined
"
className
=
"
border text-lg normal-case text-darkGray-HC-white hover:bg-darkGray-HC-white hover:text-white-HC-dark border-lightGray-HC-white
"
className
=
"
border text-lg normal-case text-darkGray-HC-white
-underline
hover:bg-darkGray-HC-white hover:text-white-HC-dark border-lightGray-HC-white
"
onClick
=
{()
=>
{
navigator
.
clipboard
.
writeText
(
iframe
);
setCopied
(
true
);
...
...
This diff is collapsed.
Click to expand it.
src/app/components/ShareModal.js
+
1
−
1
View file @
a77969cd
...
...
@@ -46,7 +46,7 @@ export default function ShareModal({ open, onClose, learningObject, title, type,
}}
>
<
div
>
<
div
className
=
"
flex flex-col bg-ice-HC-dark p-6 rounded-lg items-center outline outline-1 outline-ice-HC-white
"
>
<
div
className
=
"
flex flex-col bg-ice-HC-dark p-6 rounded-lg items-center outline outline-1 outline-ice-HC-white
max-sm:
"
>
<
div
className
=
"
text-xl font-bold text-darkGray-HC-white
"
>
{
title
}
<
/div
>
<
div
className
=
"
p-3 mt-2 flex flex-col sm:flex-row
"
>
<
div
className
=
'
flex flex-wrap gap-4 justify-center
'
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment