Skip to content

Commit

Permalink
storage: remove some unnecessary occurances of pull-right class
Browse files Browse the repository at this point in the history
pull-right class should not be used - see cockpit-project#14544
  • Loading branch information
KKoukiou authored and marusak committed Oct 21, 2020
1 parent 27381f0 commit f12c0c8
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 36 deletions.
24 changes: 11 additions & 13 deletions pkg/storaged/content-views.jsx
Expand Up @@ -628,11 +628,10 @@ const BlockContent = ({ client, block, allow_partitions }) => {
var format_disk_btn = null;
if (allow_partitions)
format_disk_btn = (
<div className="pull-right">
<StorageButton onClick={format_disk} excuse={block.ReadOnly ? _("Device is read-only") : null}>
{_("Create partition table")}
</StorageButton>
</div>);
<StorageButton onClick={format_disk} excuse={block.ReadOnly ? _("Device is read-only") : null}>
{_("Create partition table")}
</StorageButton>
);

return (
<Card>
Expand Down Expand Up @@ -796,14 +795,13 @@ export class VGroup extends React.Component {
var excuse = vgroup.FreeSize == 0 && _("No free space");

var new_volume_link = (
<div className="pull-right">
<StorageLink onClick={create_logical_volume}
excuse={excuse}>
<span className="pficon pficon-add-circle-o" />
{" "}
{_("Create new logical volume")}
</StorageLink>
</div>);
<StorageLink onClick={create_logical_volume}
excuse={excuse}>
<span className="pficon pficon-add-circle-o" />
{" "}
{_("Create new logical volume")}
</StorageLink>
);

return (
<Card>
Expand Down
42 changes: 24 additions & 18 deletions pkg/storaged/nfs-details.jsx
Expand Up @@ -21,7 +21,9 @@ import cockpit from "cockpit";
import React from "react";
import moment from "moment";
import {
Alert, Card, CardTitle, CardBody, Text, TextVariants,
Alert,
Card, CardHeader, CardTitle, CardBody, CardActions,
Text, TextVariants,
DescriptionList,
DescriptionListTerm,
DescriptionListGroup,
Expand Down Expand Up @@ -297,23 +299,27 @@ export class NFSDetails extends React.Component {

var header = (
<Card>
<CardTitle>
<Text component={TextVariants.h2}>{entry.fields[0]}</Text>
<span className="pull-right">
{ entry.mounted
? <StorageButton onClick={unmount}>{_("Unmount")}</StorageButton>
: <StorageButton onClick={mount}>{_("Mount")}</StorageButton>
}
{ "\n" }
{ entry.fstab
? [
<StorageButton key="1" onClick={edit}>{_("Edit")}</StorageButton>,
"\n",
<StorageButton key="2" onClick={remove} kind="danger">{_("Remove")}</StorageButton>
] : null
}
</span>
</CardTitle>
<CardHeader>
<CardTitle>
<Text component={TextVariants.h2}>{entry.fields[0]}</Text>
</CardTitle>
<CardActions>
<>
{ entry.mounted
? <StorageButton onClick={unmount}>{_("Unmount")}</StorageButton>
: <StorageButton onClick={mount}>{_("Mount")}</StorageButton>
}
{ "\n" }
{ entry.fstab
? [
<StorageButton key="1" onClick={edit}>{_("Edit")}</StorageButton>,
"\n",
<StorageButton key="2" onClick={remove} kind="danger">{_("Remove")}</StorageButton>
] : null
}
</>
</CardActions>
</CardHeader>
<CardBody>
<DescriptionList isHorizontal>
<DescriptionListGroup>
Expand Down
5 changes: 0 additions & 5 deletions pkg/storaged/storage.scss
Expand Up @@ -449,11 +449,6 @@ a.disabled {
margin-left: 2em;
}

.listing-ct caption .pull-right {
margin-right: 10px;
}


/* Make tooltips inside tables visible.
*/

Expand Down

0 comments on commit f12c0c8

Please sign in to comment.