From 79fac442abca4047b117c89aa44ade4faf1dbdf1 Mon Sep 17 00:00:00 2001 From: carlagn Date: Tue, 9 Apr 2024 11:15:11 +0100 Subject: [PATCH] Docusaurus: fix:DA-256 table icons darkmode (#5840) * update color of icons on table * update missing classname for table icons update kbd elements color for darkmode --- .../200-orm/400-tools/06-prisma-studio.mdx | 33 +++++++++---------- src/css/custom.css | 5 +++ 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/content/200-orm/400-tools/06-prisma-studio.mdx b/content/200-orm/400-tools/06-prisma-studio.mdx index ea5d67bc5b..53bae04ba2 100644 --- a/content/200-orm/400-tools/06-prisma-studio.mdx +++ b/content/200-orm/400-tools/06-prisma-studio.mdx @@ -62,13 +62,13 @@ The table below lists all data types and their identifying icon. | Field data type | Description | | :-------------------------------------------------------------------------------: | ------------------------------------ | -| | Text | -| | Integer | -| | Date-time

| -| | Boolean
| -| | Pre-defined list of values (`enum` data type) | -| | List of related records from another model | -| | The `{}` symbol can refer to one of the two types of fields.

• Relation field
• JSON field | +| | Text | +| | Integer | +| | Date-time

| +| | Boolean
| +| | Pre-defined list of values (`enum` data type) | +| | List of related records from another model | +| | The `{}` symbol can refer to one of the two types of fields.

• Relation field
• JSON field | ### Keyboard shortcuts in models @@ -119,13 +119,13 @@ To paste in another cell, first double-click the cell to enter edit mode, and th | Field data type | Description | | :-------------------------------------------------------------------------------: | ------------------ | - | | Text | - | | Integer

If such a field has `autoincrement()` pre-filled, do not edit the cell and do not add a number manually. | - | | Date-time

Date-time fields contain a long string of numbers, letters, and others. As a best practice, copy the value of another date-time cell and modify it as necessary before pasting in the field. | - | | Boolean

Select `true` or `false`. | - | | Pre-defined list

Double-click a cell in the field and select one of the pre-defined options. | - | | List of related records from another model

It typically refers to a list of records that exist in another model in the database. If you are adding a new record and records from the related model do not yet exist, you do not need to enter anything in the current model. | - | | The `{}` symbol can refer to one of the two types of fields.

• Relation field
• JSON field

**Relation with a model defined separately in the database**

Typically, you need to select the same value as any of the previous records
Click the name of the model to see the list of values which you can then select for the related field.

**JSON field**

Double-click the field to edit the JSON data. As a best practice, validate the edited JSON data in a validator and paste it back in the cell. | + | | Text | + | | Integer

If such a field has `autoincrement()` pre-filled, do not edit the cell and do not add a number manually. | + | | Date-time

Date-time fields contain a long string of numbers, letters, and others. As a best practice, copy the value of another date-time cell and modify it as necessary before pasting in the field. | + | | Boolean

Select `true` or `false`. | + | | Pre-defined list

Double-click a cell in the field and select one of the pre-defined options. | + | | List of related records from another model

It typically refers to a list of records that exist in another model in the database. If you are adding a new record and records from the related model do not yet exist, you do not need to enter anything in the current model. | + | | The `{}` symbol can refer to one of the two types of fields.

• Relation field
• JSON field

**Relation with a model defined separately in the database**

Typically, you need to select the same value as any of the previous records
Click the name of the model to see the list of values which you can then select for the related field.

**JSON field**

Double-click the field to edit the JSON data. As a best practice, validate the edited JSON data in a validator and paste it back in the cell. | 3. (Optional) If you are unhappy with your changes, click **Discard changes** and start over. 4. Click **Save 1 change**. @@ -172,10 +172,7 @@ When you add multiple conditions, Prisma Studio filters the results so that all 1. Click **Filters** to open the **Filters** menu. - - **Note**

Click **Filters** again if you want to hide the menu. -
2. Click **Add a new filter**. @@ -282,7 +279,7 @@ The first click sorts the data in ascending order, the second - in descending or Caching issues may cause Prisma Studio to use an older version of the query engine. You may see the following error: -``` +```terminal wrap Error in request: PrismaClientKnownRequestError: Failed to validate the query Error occurred during query validation & transformation ``` diff --git a/src/css/custom.css b/src/css/custom.css index 47fa13fad7..c1c3f2899a 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -17,6 +17,10 @@ details > summary::before { --docusaurus-details-decoration-color: var(--ifm-alert-border-color) !important; } +.table-icon path { + fill: var(--main-font-color); +} + main { padding-top: 64px; padding-left: 16px; @@ -367,6 +371,7 @@ li { kbd { background: var(--white-color); + color: var(--gray-800); box-shadow: 0px 1px 1px rgba(47, 55, 71, 0.6), 0px 1px 4px rgba(47, 55, 71, 0.2); border-bottom: 1px solid rgba(47, 55, 71, 0.2); border-radius: 4px;