Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

refactor: styling with pure Tailwindcss classes

gitstarta66e5028ad1d
diff --git a/studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js b/studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js
index c2aedc4800e..fc42aef8ec1 100644
--- a/studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js
+++ b/studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js
@@ -338,7 +338,7 @@ const Results = ({ results }) => {
const formatter = (column, row) => {
return (
- <div className="sb-grid-select-cell__formatter overflow-hidden">
+ <div className="group sb-grid-select-cell__formatter overflow-hidden">
<span className="font-mono text-xs truncate">{JSON.stringify(row[column])}</span>
{row[column] && (
@@ -346,7 +346,7 @@ const Results = ({ results }) => {
type="outline"
icon={<IconClipboard size="tiny" />}
onClick={() => copyToClipboard(formatClipboardValue(row[column]))}
- className="sb-grid-select-cell__copy-action"
+ className="hidden mr-1 group-hover:block group-hover:opacity-50 hover:opacity-100"
title="Copy"
/>
)}
diff --git a/studio/styles/grid.scss b/studio/styles/grid.scss
index 20c6634572b..7da30942b20 100644
--- a/studio/styles/grid.scss
+++ b/studio/styles/grid.scss
@@ -388,7 +388,7 @@
.sb-grid-select-editor {
button {
@apply border-none rounded-none shadow-none;
- box-shadow: none !important;
+ box-shadow: none !important
}
}
@@ -527,22 +527,6 @@
@apply border-scale-300;
}
-/*
- Cell copy action
-*/
-
-.sb-grid-select-cell__copy-action {
- @apply hidden mr-1;
-}
-
-.sb-grid-select-cell__formatter:hover .sb-grid-select-cell__copy-action {
- @apply block opacity-50;
-}
-
-.sb-grid-select-cell__copy-action:hover {
- @apply opacity-100;
-}
-
/*
Header
*/