<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Card Layout</title><link>https://community.appian.com/discussions/f/user-interface/29745/card-layout</link><description>I have a card layout as below. Can anyone help If there a way for the button to not have that extra space before and after the rich text no matter what magnification or resizing of the screen is shown.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Card Layout</title><link>https://community.appian.com/thread/118142?ContentTypeID=1</link><pubDate>Fri, 25 Aug 2023 11:47:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:26ab4a4d-0094-4de5-8402-ac65dad5efda</guid><dc:creator>p2005</dc:creator><description>&lt;p&gt;Thanks everyone for the reply. I have used button for this requirement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Card Layout</title><link>https://community.appian.com/thread/118141?ContentTypeID=1</link><pubDate>Fri, 25 Aug 2023 11:40:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f5b07178-5bc4-4b7a-9d8c-1e2a6974e4d9</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;As indicated by others, best to use buttons for this.&lt;/p&gt;
&lt;p&gt;Otherwise if you&amp;nbsp;insist&amp;nbsp;on using a cardLayout you can try setting the margins on the richTextDisplayField&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!acceptTask,
  local!selected,
  a!columnLayout(
    contents: {
      a!cardLayout(
        tooltip: &amp;quot;Only Assigned Status Tasks will be processed&amp;quot;,
        contents: a!richTextDisplayField(
          align: &amp;quot;CENTER&amp;quot;,
          marginAbove: &amp;quot;NONE&amp;quot;,
          marginBelow: &amp;quot;EVEN_LESS&amp;quot;,
          value: {
            a!richTextItem(
              text: &amp;quot;ACCEPT TASKS&amp;quot;,
              color: &amp;quot;ACCENT&amp;quot;,
              style: &amp;quot;STRONG&amp;quot; 
            )
          }
        ),
        link: a!dynamicLink(
          value: &amp;quot;ACCEPT&amp;quot;,
          saveInto: local!acceptTask,
          showWhen: count(tointeger(local!selected)) &amp;lt;= 50
        ),
        style: &amp;quot;ACCENT&amp;quot;
      )
    },
    width: &amp;quot;NARROW&amp;quot;
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Card Layout</title><link>https://community.appian.com/thread/118131?ContentTypeID=1</link><pubDate>Fri, 25 Aug 2023 10:20:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d5dd77dc-5238-467e-aa5e-d257de8950c5</guid><dc:creator>Harshitha Mangamuri</dc:creator><description>&lt;p&gt;Hi Pavitra, Try to use this code and achieve your requirement if you have to use a card layout or else you can try to use buttonArrayLayout().&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!gridSelection,
  local!acceptTask,
  a!columnLayout(
    contents: {
      a!columnsLayout(
        columns: {
          a!columnLayout(
            width: &amp;quot;1X&amp;quot;,
            contents: {
              a!cardLayout(
                contents: a!richTextDisplayField(
                  value: {
                    a!richTextItem(
                      text: &amp;quot;ACCEPT TASKS&amp;quot;,
                      color: &amp;quot;ACCENT&amp;quot;,
                      style: &amp;quot;STRONG&amp;quot;
                    )
                  },
                  align: &amp;quot;CENTER&amp;quot;
                ),
                link: a!dynamicLink(
                  value: &amp;quot;ACCEPT&amp;quot;,
                  saveInto: local!acceptTask,
                  showWhen: count(
                    tointeger(local!gridSelection.selected)
                  ) &amp;lt;= 50
                ),
                tooltip: &amp;quot;Only Assigned Status Tasks will be processed&amp;quot;,
                style: &amp;quot;ACCENT&amp;quot;,

              )
            }
          ),
          a!columnLayout(width: &amp;quot;7X&amp;quot;, contents: {}),
          a!columnLayout(contents: {}, width: &amp;quot;5X&amp;quot;, ),
          a!columnLayout(width: &amp;quot;1X&amp;quot;, contents: {})
        }
      )
    },
    width: &amp;quot;EXTRA_NARROW&amp;quot;
  )
)

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Card Layout</title><link>https://community.appian.com/thread/118129?ContentTypeID=1</link><pubDate>Fri, 25 Aug 2023 07:47:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8e57c69f-bead-44e1-994a-546a4e17e16c</guid><dc:creator>anmolvijayvergiya</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!columnsLayout(
  columns: a!columnLayout(
    contents: {
      a!columnsLayout(
        columns: {
          a!columnLayout(
            contents: {
              a!cardLayout(
                tooltip: &amp;quot;Only Assigned Status Tasks will be processed&amp;quot;,
                contents: {
                  a!richTextDisplayField(
                    value: {
                      a!richTextItem(
                        text: { &amp;quot;ACCEPT TASK&amp;quot; },
                        color: &amp;quot;ACCENT&amp;quot;,
                        style: { &amp;quot;STRONG&amp;quot; }
                      )
                    },
                    preventWrapping: false(),
                    align: &amp;quot;CENTER&amp;quot;
                  )
                },
                style: &amp;quot;ACCENT&amp;quot;,
                padding: &amp;quot;NONE&amp;quot;,
                link: a!dynamicLink(
                  value: &amp;quot;ACCEPT&amp;quot;,
                  saveInto: local!acceptTask,
                  showWhen: count(
                    tointeger(local!gridSelection.selected)
                  ) &amp;lt;= 50
                ),
              )
            },
            width: &amp;quot;AUTO&amp;quot;
          ),
          a!columnLayout(contents: {})
        },
        spacing: &amp;quot;NONE&amp;quot;
      )
    },
    width: &amp;quot;NARROW&amp;quot;
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Card Layout</title><link>https://community.appian.com/thread/118000?ContentTypeID=1</link><pubDate>Wed, 23 Aug 2023 11:20:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1f110f5f-a91e-4f74-afc2-ebb29e048af4</guid><dc:creator>venkateswarak7510</dc:creator><description>&lt;p&gt;Instead of card layout use a buttonarraylayout containg a button label as accept task&amp;nbsp;&lt;/p&gt;
&lt;p&gt;a!buttonArrayLayout(&lt;br /&gt; buttons: a!buttonWidget(&lt;br /&gt; label: &amp;quot;Accept Tasks&amp;quot;,&lt;br /&gt; icon: &amp;quot;thumbs-o-up&amp;quot;,&lt;br /&gt; style: &amp;quot;PRIMARY&amp;quot;,&lt;br /&gt; value: &amp;quot;ACCEPT&amp;quot;,&lt;br /&gt; saveInto: local!acceptTask,&lt;br /&gt; showWhen: count(&lt;br /&gt; tointeger(local!gridSelection.selected)&lt;br /&gt; ) &amp;lt;= 50,&lt;br /&gt; validate: false()&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>