Fix/manga track binding card styling (#680)
* Fix missing box shadow of active tracker card Due to missing side paddings the box shadow wasn't visible * Extract tracker card styling * Prevent breaking title when selecting manga * Limit max lines of titles
This commit is contained in:
22
src/components/tracker/constants.ts
Normal file
22
src/components/tracker/constants.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (C) Contributors to the Suwayomi project
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
import { SxProps } from '@mui/material';
|
||||
|
||||
export const DIALOG_PADDING: number = 2;
|
||||
|
||||
export const CARD_BACKGROUND: SxProps = {
|
||||
backgroundColor: 'transparent',
|
||||
boxShadow: 'unset',
|
||||
backgroundImage: 'unset',
|
||||
};
|
||||
|
||||
export const CARD_STYLING: SxProps = {
|
||||
padding: DIALOG_PADDING,
|
||||
...CARD_BACKGROUND,
|
||||
};
|
||||
Reference in New Issue
Block a user