mirror of
https://github.com/harness/drone.git
synced 2025-05-31 11:43:15 +00:00
Fix commit message color when it's long + add some UI clean-up (#665)
This commit is contained in:
parent
2df8b470f7
commit
f1411da8cb
@ -21,9 +21,7 @@ const yaml = require('js-yaml')
|
|||||||
const stringify = require('fast-json-stable-stringify')
|
const stringify = require('fast-json-stable-stringify')
|
||||||
|
|
||||||
module.exports = inputSchema => {
|
module.exports = inputSchema => {
|
||||||
// Use a hard-coded configuration to prevent user-defined input.
|
|
||||||
const config = 'code'
|
const config = 'code'
|
||||||
|
|
||||||
const overridesFile = path.join('src/services', config, 'overrides.yaml')
|
const overridesFile = path.join('src/services', config, 'overrides.yaml')
|
||||||
|
|
||||||
let paths = inputSchema.paths
|
let paths = inputSchema.paths
|
||||||
|
@ -25,7 +25,6 @@ import { waitUntil } from 'utils/Utils'
|
|||||||
import { PipeSeparator } from 'components/PipeSeparator/PipeSeparator'
|
import { PipeSeparator } from 'components/PipeSeparator/PipeSeparator'
|
||||||
import type { DiffFileEntry } from 'utils/types'
|
import type { DiffFileEntry } from 'utils/types'
|
||||||
import css from './ChangesDropdown.module.scss'
|
import css from './ChangesDropdown.module.scss'
|
||||||
// import { TreeExample } from 'pages/Repository/RepositoryTree/TreeExample'
|
|
||||||
|
|
||||||
const STICKY_TOP_POSITION = 64
|
const STICKY_TOP_POSITION = 64
|
||||||
|
|
||||||
@ -38,7 +37,6 @@ export const ChangesDropdown: React.FC<{ diffs: DiffFileEntry[] }> = ({ diffs })
|
|||||||
className={css.link}
|
className={css.link}
|
||||||
tooltip={
|
tooltip={
|
||||||
<Container padding="small" className={css.filesMenu}>
|
<Container padding="small" className={css.filesMenu}>
|
||||||
{/* <TreeExample /> */}
|
|
||||||
<Menu>
|
<Menu>
|
||||||
{diffs?.map((diff, index) => (
|
{diffs?.map((diff, index) => (
|
||||||
<MenuItem
|
<MenuItem
|
||||||
|
@ -86,6 +86,7 @@
|
|||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
cursor: pointer !important;
|
cursor: pointer !important;
|
||||||
|
color: var(--black) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text:hover {
|
.text:hover {
|
||||||
|
@ -389,9 +389,5 @@ export function isInViewport(element: Element) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export const truncateString = (str: string, length: number): string => {
|
export const truncateString = (str: string, length: number): string =>
|
||||||
if (str.length <= length) {
|
str.length <= length ? str : str.slice(0, length - 3) + '...'
|
||||||
return str
|
|
||||||
}
|
|
||||||
return str.slice(0, length - 3) + '...'
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user