Skip to content

Free, simple, and intuitive online database diagram editor and SQL generator.

Reintroduced opacity using RGBA

ClaPalo99cee1c10434
diff --git a/src/components/EditorCanvas/Table.jsx b/src/components/EditorCanvas/Table.jsx
index 0b88cf87..0044722d 100644
--- a/src/components/EditorCanvas/Table.jsx
+++ b/src/components/EditorCanvas/Table.jsx
@@ -99,7 +99,7 @@ export default function Table(props) {
size="small"
theme="solid"
style={{
- backgroundColor: "#2f68ad",
+ backgroundColor: "#2f68adb3",
marginRight: "6px",
}}
onClick={openEditor}
@@ -174,7 +174,7 @@ export default function Table(props) {
type="tertiary"
size="small"
style={{
- backgroundColor: "grey",
+ backgroundColor: "#808080b3",
color: "white",
}}
/>
@@ -277,7 +277,7 @@ export default function Table(props) {
} flex items-center gap-2 overflow-hidden`}
>
<button
- className="flex-shrink-0 w-[10px] h-[10px] bg-[#2f68ad] rounded-full"
+ className="flex-shrink-0 w-[10px] h-[10px] bg-[#2f68adcc] rounded-full"
onMouseDown={() => {
handleGripField(index);
setLinkingLine((prev) => ({
@@ -301,7 +301,7 @@ export default function Table(props) {
theme="solid"
size="small"
style={{
- backgroundColor: "#d42020",
+ backgroundColor: "#d42020b3",
}}
icon={<IconMinus />}
onClick={() => deleteField(fieldData, tableData.id)}
diff --git a/src/components/SimpleCanvas.jsx b/src/components/SimpleCanvas.jsx
index e3bd9147..e848ffee 100644
--- a/src/components/SimpleCanvas.jsx
+++ b/src/components/SimpleCanvas.jsx
@@ -41,7 +41,7 @@ function Table({ table, grab }) {
>
<div className={hoveredField === i ? "text-zinc-500" : ""}>
<button
- className={`w-[9px] h-[9px] bg-[#2f68ad] rounded-full me-2`}
+ className={`w-[9px] h-[9px] bg-[#2f68adcc] rounded-full me-2`}
/>
{e.name}
</div>