Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
1f3d98fd
Commit
1f3d98fd
authored
Jan 28, 2022
by
Jacques
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix minor cosmetic issues on the rafactored blob
Fixed some minor styling issues on the refactored blob viewer
parent
b0e34aef
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
app/assets/javascripts/repository/components/blob_content_viewer.vue
...javascripts/repository/components/blob_content_viewer.vue
+1
-1
app/assets/javascripts/vue_shared/components/blob_viewers/simple_viewer.vue
...ipts/vue_shared/components/blob_viewers/simple_viewer.vue
+2
-2
app/assets/javascripts/vue_shared/components/source_viewer.vue
...ssets/javascripts/vue_shared/components/source_viewer.vue
+2
-2
spec/frontend/vue_shared/components/blob_viewers/__snapshots__/simple_viewer_spec.js.snap
...nts/blob_viewers/__snapshots__/simple_viewer_spec.js.snap
+2
-2
No files found.
app/assets/javascripts/repository/components/blob_content_viewer.vue
View file @
1f3d98fd
...
...
@@ -245,7 +245,7 @@ export default {
<
template
>
<div>
<gl-loading-icon
v-if=
"isLoading"
size=
"sm"
/>
<div
v-if=
"blobInfo && !isLoading"
class=
"file-holder"
>
<div
v-if=
"blobInfo && !isLoading"
class=
"file-holder
gl-overflow-hidden
"
>
<blob-header
:blob=
"blobInfo"
:hide-viewer-switcher=
"!hasRichViewer || isBinaryFileType || isUsingLfs"
...
...
app/assets/javascripts/vue_shared/components/blob_viewers/simple_viewer.vue
View file @
1f3d98fd
...
...
@@ -51,7 +51,7 @@ export default {
<
template
>
<div>
<div
class=
"file-content code js-syntax-highlight"
:class=
"$options.userColorScheme"
>
<div
v-if=
"!hideLineNumbers"
class=
"line-numbers"
>
<div
v-if=
"!hideLineNumbers"
class=
"line-numbers
gl-pt-0!
"
>
<a
v-for=
"line in lineNumbers"
:id=
"`L$
{line}`"
...
...
@@ -67,7 +67,7 @@ export default {
</div>
<div
class=
"blob-content"
>
<pre
class=
"code highlight"
class=
"code highlight
gl-p-0! gl-display-flex
"
><code
v-safe-html=
"content"
:data-blob-hash=
"blobHash"
></code></pre>
</div>
</div>
...
...
app/assets/javascripts/vue_shared/components/source_viewer.vue
View file @
1f3d98fd
...
...
@@ -116,13 +116,13 @@ export default {
</
script
>
<
template
>
<div
class=
"file-content code js-syntax-highlight blob-content"
class=
"file-content code js-syntax-highlight blob-content
gl-display-flex
"
:class=
"$options.userColorScheme"
data-type=
"simple"
data-qa-selector=
"blob_viewer_file_content"
>
<line-numbers
:lines=
"lineNumbers"
/>
<pre
class=
"code"
><code
v-safe-html=
"highlightedContent"
></code>
<pre
class=
"code
gl-pb-0!
"
><code
v-safe-html=
"highlightedContent"
></code>
</pre>
</div>
</
template
>
spec/frontend/vue_shared/components/blob_viewers/__snapshots__/simple_viewer_spec.js.snap
View file @
1f3d98fd
...
...
@@ -6,7 +6,7 @@ exports[`Blob Simple Viewer component rendering matches the snapshot 1`] = `
class="file-content code js-syntax-highlight"
>
<div
class="line-numbers"
class="line-numbers
gl-pt-0!
"
>
<a
class="diff-line-num js-line-number"
...
...
@@ -56,7 +56,7 @@ exports[`Blob Simple Viewer component rendering matches the snapshot 1`] = `
class="blob-content"
>
<pre
class="code highlight"
class="code highlight
gl-p-0! gl-display-flex
"
>
<code
data-blob-hash="foo-bar"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment