Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
bhollis committed Jan 5, 2024
1 parent 3914b1b commit 6ec5cf6
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/app/settings/CustomStatsSettings.m.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@
}

.identifyingInfo {
composes: flexRow from '../dim-ui/common.m.scss';
composes: flexWrap from '../dim-ui/common.m.scss';
align-items: center;
justify-content: flex-end;
gap: 8px;

img {
Expand All @@ -86,6 +87,7 @@

.label {
flex-grow: 1;
text-wrap: balance;
}

.classIcon {
Expand Down Expand Up @@ -116,8 +118,9 @@

// all info for a custom stat, without the editing controls
.customStatView {
composes: flexWrap from '../dim-ui/common.m.scss';
composes: flexRow from '../dim-ui/common.m.scss';
align-items: center;
gap: 8px;
}

@keyframes pulse-border {
Expand Down
2 changes: 1 addition & 1 deletion src/app/settings/CustomStatsSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ function CustomStatView({
setEditing: React.Dispatch<React.SetStateAction<number>>;
}) {
return (
<div className={clsx(styles.customStatView, styles.identifyingInfo)}>
<div className={styles.customStatView}>
<button
type="button"
className="dim-button"
Expand Down
4 changes: 4 additions & 0 deletions src/app/settings/Spreadsheets.m.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.buttons {
composes: flexWrap from '../dim-ui/common.m.scss';
gap: 4px;
}
7 changes: 7 additions & 0 deletions src/app/settings/Spreadsheets.m.scss.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/app/settings/Spreadsheets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { DropzoneOptions } from 'react-dropzone';
import { useSelector } from 'react-redux';
import { AppIcon, spreadsheetIcon } from '../shell/icons';
import { settingClass } from './SettingsPage';
import styles from './Spreadsheets.m.scss';

export default function Spreadsheets() {
const dispatch = useThunkDispatch();
Expand Down Expand Up @@ -43,7 +44,7 @@ export default function Spreadsheets() {
<label htmlFor="spreadsheetLinks" title={t('Settings.ExportSSHelp')}>
{t('Settings.ExportSS')}
</label>
<div>
<div className={styles.buttons}>
<button
type="button"
className="dim-button"
Expand Down

0 comments on commit 6ec5cf6

Please sign in to comment.