mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 09:46:30 -05:00
Add fixed sizes for history table columns
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
772b099879
commit
e64b07b289
2 changed files with 24 additions and 3 deletions
|
@ -0,0 +1,20 @@
|
||||||
|
.history-table tr {
|
||||||
|
th, td {
|
||||||
|
|
||||||
|
&:nth-child(1) {
|
||||||
|
width: 45%;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:nth-child(2) {
|
||||||
|
width: 20%;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:nth-child(3) {
|
||||||
|
width: 20%;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:nth-child(4) {
|
||||||
|
width: 15%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,14 +1,15 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Table } from 'react-bootstrap'
|
import { Table } from 'react-bootstrap'
|
||||||
import { HistoryTableRow } from './history-table-row'
|
|
||||||
import { HistoryEntriesProps } from '../history-content/history-content'
|
|
||||||
import { Trans, useTranslation } from 'react-i18next'
|
import { Trans, useTranslation } from 'react-i18next'
|
||||||
import { Pager } from '../../../../pagination/pager'
|
import { Pager } from '../../../../pagination/pager'
|
||||||
|
import { HistoryEntriesProps } from '../history-content/history-content'
|
||||||
|
import { HistoryTableRow } from './history-table-row'
|
||||||
|
import './history-table.scss'
|
||||||
|
|
||||||
export const HistoryTable: React.FC<HistoryEntriesProps> = ({ entries, onPinClick, pageIndex, onLastPageIndexChange }) => {
|
export const HistoryTable: React.FC<HistoryEntriesProps> = ({ entries, onPinClick, pageIndex, onLastPageIndexChange }) => {
|
||||||
useTranslation()
|
useTranslation()
|
||||||
return (
|
return (
|
||||||
<Table striped bordered hover size="sm" variant="dark">
|
<Table striped bordered hover size="sm" variant="dark" className={'history-table'}>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><Trans i18nKey={'landing.history.tableHeader.title'}/></th>
|
<th><Trans i18nKey={'landing.history.tableHeader.title'}/></th>
|
||||||
|
|
Loading…
Reference in a new issue