Skip to content

Commit

Permalink
[4.x] Fix copy to clipboard button position on query preview (#1373)
Browse files Browse the repository at this point in the history
* [fix] fix copy to clipboard button position on query preview

* [build] Compile Assets
  • Loading branch information
alissn authored Aug 11, 2023
1 parent b5def3d commit f053bb9
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 16 deletions.
8 changes: 4 additions & 4 deletions public/app-dark.css

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions public/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/app.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"/app.js": "/app.js?id=1abbba05aec248b088a0ae6e3e22d2bc",
"/app-dark.css": "/app-dark.css?id=a9022d8e130bf3ec3a93350be9bf858e",
"/app.css": "/app.css?id=b89676ee10846bfd767c6836074db724"
"/app.js": "/app.js?id=50544b4ff04beeca3dbadfcc6474031d",
"/app-dark.css": "/app-dark.css?id=b11fa9a28e9d3aeb8c92986f319b3c44",
"/app.css": "/app.css?id=b3ccfbe68f24cff776f83faa8dead721"
}
9 changes: 5 additions & 4 deletions resources/js/screens/queries/preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@
<a class="nav-link active">Query</a>
</li>
</ul>

<copy-clipboard :data="formatSql(slotProps.entry.content.sql)">
<pre class="code-bg p-4 mb-0 text-white" ref="sqlcode">{{ formatSql(slotProps.entry.content.sql) }}</pre>
</copy-clipboard>
<div class="code-bg p-4 mb-0 text-white">
<copy-clipboard :data="formatSql(slotProps.entry.content.sql)">
<pre class="code-bg text-white" ref="sqlcode">{{ formatSql(slotProps.entry.content.sql) }}</pre>
</copy-clipboard>
</div>
</div>
</div>
</preview-screen>
Expand Down

0 comments on commit f053bb9

Please sign in to comment.