1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 19:37:28 +00:00

13.0 fix reactstrap Label style (#7478)

* 01 change dialog Label

* 02 change form-label style
This commit is contained in:
Michael An
2025-02-18 10:31:05 +08:00
committed by GitHub
parent b386240f28
commit 2b74a02a67
5 changed files with 13 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { Button, ModalBody, ModalFooter, Input } from 'reactstrap';
import { Button, ModalBody, ModalFooter, Input, Label } from 'reactstrap';
import { gettext } from '../../utils/constants';
import { TAG_COLORS } from '../../constants';
import { seafileAPI } from '../../utils/seafile-api';
@@ -77,7 +77,7 @@ class CreateTagDialog extends React.Component {
<ModalBody>
<div role="form" className="tag-create">
<div className="form-group">
<label className="form-label">{gettext('Name')}</label>
<Label>{gettext('Name')}</Label>
<Input
name="tag-name"
onKeyDown={this.handleKeyDown}
@@ -88,7 +88,7 @@ class CreateTagDialog extends React.Component {
<div className="mt-2"><span className="error">{this.state.errorMsg}</span></div>
</div>
<div className="form-group">
<label className="form-label">{gettext('Select a color')}</label>
<Label>{gettext('Select a color')}</Label>
<div className="d-flex justify-content-between">
{TAG_COLORS.map((item, index) => {
return (