diff --git a/src/components/app.scss b/src/components/app.scss index b23f61a..e89936a 100644 --- a/src/components/app.scss +++ b/src/components/app.scss @@ -8,6 +8,6 @@ @apply w-1/6 shadow; } main { - @apply flex-auto ml-px; + @apply flex-auto ml-px overflow-hidden; } } diff --git a/src/components/branches-list/branches-list.scss b/src/components/branches-list/branches-list.scss index df0fb47..16c0eee 100644 --- a/src/components/branches-list/branches-list.scss +++ b/src/components/branches-list/branches-list.scss @@ -1,5 +1,5 @@ .component { - @apply self-stretch; + @apply bg-red-200; } .item { @apply bg-gray-50 p-2 text-red-400 border-red-500 my-px diff --git a/src/components/commit-logs/commit-log-list.scss b/src/components/commit-logs/commit-log-list.scss index e69de29..5160ac4 100644 --- a/src/components/commit-logs/commit-log-list.scss +++ b/src/components/commit-logs/commit-log-list.scss @@ -0,0 +1,15 @@ +.component { + @apply bg-white flex-auto; +} +.list { + @apply bg-gray-100 overflow-auto max-h-full; +} +.item { + @apply bg-white text-gray-700; + @apply py-2 px-4 my-px; + @apply hover:bg-gray-50; + + time { + @apply text-sm text-gray-400; + } +} diff --git a/src/components/commit-logs/commit-log-list.scss.d.ts b/src/components/commit-logs/commit-log-list.scss.d.ts new file mode 100644 index 0000000..7e35d88 --- /dev/null +++ b/src/components/commit-logs/commit-log-list.scss.d.ts @@ -0,0 +1,12 @@ +// This file is automatically generated from your CSS. Any edits will be overwritten. +declare namespace CommitLogListScssNamespace { + export interface ICommitLogListScss { + component: string; + item: string; + list: string; + } +} + +declare const CommitLogListScssModule: CommitLogListScssNamespace.ICommitLogListScss; + +export = CommitLogListScssModule; diff --git a/src/components/commit-logs/commit-log-list.tsx b/src/components/commit-logs/commit-log-list.tsx index 3fdd65b..c546c65 100644 --- a/src/components/commit-logs/commit-log-list.tsx +++ b/src/components/commit-logs/commit-log-list.tsx @@ -1,6 +1,7 @@ import { LogList, Project, ListLogsArgs } from '../../generated/graphql'; import { h } from 'preact'; import { gql, useQuery } from '@apollo/client'; +import styles from './commit-log-list.scss'; const LIST_LOGS = gql` query ListLogs($args: ListLogsArgs!) { @@ -32,12 +33,20 @@ export const CommitLogList = ({ project, branch }: Props) => { const list = data?.listLogs?.all?.map(log => { return ( -
  • +
  • {log.message}

  • ); }); - return loading ? Loading... :
      {list}
    ; + return ( +
    + {loading ? ( + Loading... + ) : ( +
      {list}
    + )} +
    + ); }; diff --git a/src/components/projects/project-details.scss b/src/components/projects/project-details.scss index c798d95..ca8dcfd 100644 --- a/src/components/projects/project-details.scss +++ b/src/components/projects/project-details.scss @@ -1,4 +1,5 @@ .projectDetails { + @apply h-full flex flex-col; header { @apply bg-red-400 text-gray-50 p-2; @apply grid grid-cols-2 grid-rows-2; @@ -20,5 +21,8 @@ } .body { - @apply flex; + @apply flex items-stretch flex-auto overflow-hidden; + & > *:not(:first-child) { + @apply ml-px; + } }