Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DCSG2900-ThreatTotal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Barstad
DCSG2900-ThreatTotal
Merge requests
!2
Merge react-branch into main.
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Merge react-branch into main.
React-Branch
into
main
Overview
0
Commits
325
Pipelines
0
Changes
3
Merged
Jonas Kjærandsen
requested to merge
React-Branch
into
main
3 years ago
Overview
0
Commits
325
Pipelines
0
Changes
3
React-branch contains the updated project code.
0
0
Merge request reports
Viewing commit
e9454d40
Prev
Next
Show latest version
3 files
+
48
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
e9454d40
Screenshot frontend view updated, now scales properly.
· e9454d40
Jonas Kjærandsen
authored
3 years ago
threat-total/src/components/displayScreenshot.js
+
3
−
3
View file @ e9454d40
Edit in single-file editor
Open in Web IDE
Show full file
@@ -8,10 +8,10 @@ if (screenshot.screenshot !== undefined && screenshot.screenshot !== null) {
var
base64Image
=
'
data:image/png;base64,
'
+
screenshot
.
screenshot
;
return
(
<
div
className
=
'
bg-white border-2 m-2 border-gray-400 rounded-lg p-1 text-left
'
>
<
div
>
<
div
className
=
'
flex
'
>
<
div
className
=
'
border-r-2
grid place-items-center
pr-1
'
>
<
img
src
=
{
base64Image
}
alt
=
"
Screenshot
"
/>
<
div
className
=
'
grid place-items-center
'
>
<
img
src
=
{
base64Image
}
className
=
"
w-full h-auto border-2 border-gray-400 rounded-lg
"
alt
=
"
Screenshot
"
/>
<
/div
>
<
div
className
=
"
p-1
"
>
<
br
><
/br
>
Loading