-
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.
feat(GUI): use CSS Grid for a predictable table
- Loading branch information
Showing
9 changed files
with
125 additions
and
11 deletions.
There are no files selected for viewing
68 changes: 68 additions & 0 deletions
68
packages/apps/client/src/CurrentRundown/CurrentRundown.module.scss
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,68 @@ | ||
.SegmentLineList { | ||
display: grid; | ||
grid-template-columns: 1fr 4em 6em 2fr 5fr 1fr 1fr; | ||
padding: 0; | ||
margin: 0; | ||
--table-gap-size: 1px; | ||
gap: var(--table-gap-size); | ||
} | ||
|
||
.SegmentContainer { | ||
padding: 0; | ||
margin: 0; | ||
display: contents; | ||
} | ||
|
||
.SegmentIdentifier { | ||
padding: 0; | ||
margin: 0; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
|
||
.LineContainer { | ||
padding: 0; | ||
margin: 0; | ||
grid-column: 2 / 8; | ||
display: grid; | ||
grid-template-columns: subgrid; | ||
grid-template-rows: auto; | ||
gap: var(--table-gap-size); | ||
} | ||
|
||
.Line { | ||
grid-column: 1 / 7; | ||
display: grid; | ||
grid-template-columns: subgrid; | ||
gap: var(--table-gap-size); | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.LineItem { | ||
background: var(--color-dark-2); | ||
} | ||
|
||
.LineIdentifier { | ||
--dummy: 1; | ||
} | ||
|
||
.LineType { | ||
--dumy: 1; | ||
} | ||
|
||
.LineSlug { | ||
composes: LineItem; | ||
} | ||
|
||
.LineScript { | ||
composes: LineItem; | ||
} | ||
|
||
.LineDuration { | ||
composes: LineItem; | ||
} | ||
|
||
.LineDuration2 { | ||
composes: LineItem; | ||
} |
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
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
12 changes: 12 additions & 0 deletions
12
packages/apps/client/src/lib/mdExtensions/everyLineAParagraph.ts
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,12 @@ | ||
import { Extension, CompileContext, Token } from 'mdast-util-from-markdown' | ||
import { TokenTypeMap } from 'micromark-util-types' | ||
|
||
export function everyLineAParagraph(): Extension { | ||
return { | ||
enter: { | ||
['lineEnding']: function (this: CompileContext, token: Token) { | ||
console.log(token, this) | ||
}, | ||
}, | ||
} | ||
} |
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