Fix commit message color when it's long + add some UI clean-up (#665)

This commit is contained in:
Tan Nhu 2023-10-09 21:57:24 +00:00 committed by Harness
parent 2df8b470f7
commit f1411da8cb
4 changed files with 3 additions and 10 deletions

View File

@ -21,9 +21,7 @@ const yaml = require('js-yaml')
const stringify = require('fast-json-stable-stringify')
module.exports = inputSchema => {
// Use a hard-coded configuration to prevent user-defined input.
const config = 'code'
const overridesFile = path.join('src/services', config, 'overrides.yaml')
let paths = inputSchema.paths

View File

@ -25,7 +25,6 @@ import { waitUntil } from 'utils/Utils'
import { PipeSeparator } from 'components/PipeSeparator/PipeSeparator'
import type { DiffFileEntry } from 'utils/types'
import css from './ChangesDropdown.module.scss'
// import { TreeExample } from 'pages/Repository/RepositoryTree/TreeExample'
const STICKY_TOP_POSITION = 64
@ -38,7 +37,6 @@ export const ChangesDropdown: React.FC<{ diffs: DiffFileEntry[] }> = ({ diffs })
className={css.link}
tooltip={
<Container padding="small" className={css.filesMenu}>
{/* <TreeExample /> */}
<Menu>
{diffs?.map((diff, index) => (
<MenuItem

View File

@ -86,6 +86,7 @@
font-size: 13px;
font-weight: 400;
cursor: pointer !important;
color: var(--black) !important;
}
.text:hover {

View File

@ -389,9 +389,5 @@ export function isInViewport(element: Element) {
)
}
export const truncateString = (str: string, length: number): string => {
if (str.length <= length) {
return str
}
return str.slice(0, length - 3) + '...'
}
export const truncateString = (str: string, length: number): string =>
str.length <= length ? str : str.slice(0, length - 3) + '...'