Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x] Fix copy to clipboard button position on query preview #1373

Merged
merged 2 commits into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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