Skip to content

TagSpaces is an offline, open source, document manager with tagging support

styling adjustments

Ilian Sapundshiev000f36346a43
diff --git a/app/components/TagContainer.js b/app/components/TagContainer.js
index 40102646b..65f02fd24 100644
--- a/app/components/TagContainer.js
+++ b/app/components/TagContainer.js
@@ -137,22 +137,26 @@ const TagContainer = (props: Props) => {
textTransform: 'none',
color: textColor,
backgroundColor,
- minHeight: 25,
+ minHeight: 0,
+ minWidth: 0,
margin: 2,
paddingTop: 0,
paddingBottom: 0,
- paddingRight: 3,
+ paddingRight: 0,
+ paddingLeft: 5,
borderRadius: 5
}}
>
- <span>
+ <span style={{ flexGrow: '1' }}>
{tag.title}
</span>
{(tagMode === 'remove') ? (deleteIcon || (
<RemoveTagIcon
data-tid={'tagRemoveButton_' + tag.title.replace(/ /g, '_')}
style={{
- color: tag.textColor
+ color: tag.textColor,
+ fontSize: 20,
+ marginBottom: -5
}}
onClick={event => handleRemoveTag(event, tag)}
/>
@@ -160,7 +164,10 @@ const TagContainer = (props: Props) => {
<MoreVertIcon
data-tid={'tagMoreButton_' + tag.title.replace(/ /g, '_')}
style={{
- color: tag.textColor
+ color: tag.textColor,
+ marginLeft: -5,
+ marginRight: -5,
+ top: 0
}}
/>
)}
diff --git a/app/components/TagDropContainer.js b/app/components/TagDropContainer.js
index 599290d73..90b00ff75 100644
--- a/app/components/TagDropContainer.js
+++ b/app/components/TagDropContainer.js
@@ -33,21 +33,21 @@ const boxTarget = {
return {
entryPath: props.entryPath
};
- },
+ }
};
const TagDropContainer = (props: Props) => {
const { canDrop, isOver, connectDropTarget } = props;
const isActive = canDrop && isOver;
- let border = '1px solid transparent';
+ let border = '2px solid transparent';
let backgroundColor = 'transparent';
if (isActive) {
- border = '1px solid rgb(233, 233, 233)';
- backgroundColor = 'rgb(233, 233, 233)';
+ border = '2px solid #f7cf00';
+ backgroundColor = '#f7cf00';
} else if (canDrop) {
- border = '1px solid rgb(212, 212, 212)';
- backgroundColor = 'rgb(212, 212, 212)';
+ border = '2px solid #ffeaa5';
+ backgroundColor = '#ffeaa5';
}
return connectDropTarget(
@@ -55,17 +55,16 @@ const TagDropContainer = (props: Props) => {
style={{
border,
backgroundColor,
- borderRadius: 3
+ borderRadius: 5
}}
>
{props.children}
- </div>,
+ </div>
);
};
export default DropTarget(DragItemTypes.TAG, boxTarget, (connect, monitor) => ({
connectDropTarget: connect.dropTarget(),
isOver: monitor.isOver(),
- canDrop: monitor.canDrop(),
+ canDrop: monitor.canDrop()
}))(TagDropContainer);
-
diff --git a/app/perspectives/grid-perspective/src/index.js b/app/perspectives/grid-perspective/src/index.js
index f14820d3c..36f2d4910 100644
--- a/app/perspectives/grid-perspective/src/index.js
+++ b/app/perspectives/grid-perspective/src/index.js
@@ -726,7 +726,7 @@ class GridPerspective extends React.Component<Props, State> {
);
} else if (this.state.layoutType === 'row') {
return (
- <Grid container wrap="nowrap" spacing={16}>
+ <Grid container wrap="nowrap">
<Grid
item
style={{
@@ -751,11 +751,7 @@ class GridPerspective extends React.Component<Props, State> {
)}
</Grid>
<Grid item xs zeroMinWidth>
- <Typography
- style={{
- padding: 5
- }}
- >
+ <Typography>
{extractTitle(fsEntry.name, !fsEntry.isFile)}
</Typography>
{fsEntry.tags.map(tag => this.renderTag(tag, fsEntry))}
@@ -797,7 +793,7 @@ class GridPerspective extends React.Component<Props, State> {
style={{
backgroundSize: this.state.thumbnailMode,
backgroundImage: thumbPathUrl,
- margin: 5,
+ margin: 1,
height: 85,
width: 85
}}