Skip to content

Commit

Permalink
Merge pull request #843 from ita-social-projects/forFansCenterTitle
Browse files Browse the repository at this point in the history
forFansCenterTitle: fix title in for fans block, center text
  • Loading branch information
MementoMorj authored Sep 26, 2023
2 parents 51d805d + cf9e1e2 commit 77784d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ interface SourceModalProps {
isModalVisible: boolean;
setIsModalOpen: Dispatch<SetStateAction<boolean>>;
initialData?: SourceCategoryAdmin;
isNewCategory?:(data: boolean) => void;
isNewCategory?: (data: boolean) => void;
}

const SourceModal: React.FC<SourceModalProps> = ({
Expand Down Expand Up @@ -131,7 +131,7 @@ const SourceModal: React.FC<SourceModalProps> = ({
return [];
};

const handleOk =() =>{
const handleOk = () => {
form.submit();
message.success("Категорію успішно додано!", 2);
}
Expand All @@ -156,7 +156,7 @@ const SourceModal: React.FC<SourceModalProps> = ({
label="Назва: "
rules={[{ required: true, message: 'Введіть назву' }]}
>
<Input placeholder="Title" maxLength={100} showCount />
<Input placeholder="Title" maxLength={23} showCount />
</Form.Item>
<Form.Item
name="image"
Expand Down Expand Up @@ -191,7 +191,7 @@ const SourceModal: React.FC<SourceModalProps> = ({
</FileUploader>
</Form.Item>
<div className="center">
<Button className="streetcode-custom-button" onClick={() => handleOk() }>
<Button className="streetcode-custom-button" onClick={() => handleOk()}>
Зберегти
</Button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@ $articlesImg: "@assets/images/sources/Articles.webp";
@media screen and (max-width: 768px) {
.sourcesSliderItem {
@include mut.sizedImportant($width: 250px, $height: 165px);
h1 {
text-align: center;
}
}
}

0 comments on commit 77784d1

Please sign in to comment.