-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
323 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/components/CTypeDetails/__snapshots__/CTypeDetails.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
.table { | ||
width: 100%; | ||
border-collapse: collapse; | ||
} | ||
|
||
.grid { | ||
display: grid; | ||
grid-template-columns: 8rem 1fr 6rem; | ||
} | ||
|
||
.tableRow { | ||
display: contents; | ||
} | ||
|
||
.tableRow:nth-child(2n) { | ||
background-color: rgb(41 135 205 / 10%); | ||
} | ||
|
||
.tableRow:nth-child(2n + 1) { | ||
background-color: rgb(41 135 205 / 30%); | ||
} | ||
|
||
.tableCell { | ||
padding: 0.5rem; | ||
border: 2px solid rgba(var(--color-black-rgb)); | ||
min-width: 0; | ||
overflow-wrap: anywhere; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
justify-content: center; | ||
gap: 0.5rem; | ||
} | ||
|
||
.tableHeader { | ||
composes: grid; | ||
background-color: var(--color-link); | ||
} | ||
|
||
.tableBody { | ||
composes: grid; | ||
} | ||
|
||
.tableHeaderDate { | ||
composes: tableCell; | ||
grid-column: 1; | ||
} | ||
|
||
.tableHeaderDetails { | ||
composes: tableCell; | ||
grid-column: 2; | ||
} | ||
|
||
.tableHeaderHidden { | ||
composes: tableCell; | ||
grid-column: 3; | ||
} | ||
|
||
.tableDataDate { | ||
composes: tableCell; | ||
grid-column: 1; | ||
justify-content: flex-start; | ||
} | ||
|
||
.tableDataDetails { | ||
composes: tableCell; | ||
grid-column: 2; | ||
justify-content: flex-start; | ||
} | ||
|
||
.tableDataHidden { | ||
composes: tableCell; | ||
grid-column: 3; | ||
justify-content: flex-start; | ||
align-items: center; | ||
} | ||
|
||
.tableDataDetails p { | ||
margin: 0; | ||
} | ||
|
||
.hidden { | ||
color: rgb(176 213 251 / 40%); | ||
} | ||
|
||
.iconButton { | ||
border: 0; | ||
padding: 0; | ||
inline-size: 3rem; | ||
block-size: 3rem; | ||
display: inline-flex; | ||
cursor: pointer; | ||
} | ||
|
||
.hide { | ||
composes: iconButton; | ||
background: url('./eye-solid.svg') no-repeat center/auto 0.75rem; | ||
} | ||
|
||
.unhide { | ||
composes: iconButton; | ||
background: url('./eye-slash-solid.svg') no-repeat center/auto 0.75rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
'use strict'; | ||
|
||
/** @type {import('sequelize-cli').Migration} */ | ||
module.exports = { | ||
async up(queryInterface, Sequelize) { | ||
await queryInterface.addColumn('CTypes', 'isHidden', { | ||
type: Sequelize.BOOLEAN, | ||
allowNull: false, | ||
defaultValue: false, | ||
}); | ||
}, | ||
|
||
async down(queryInterface) { | ||
await queryInterface.removeColumn('CTypes', 'isHidden'); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.