Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2117 from andydotxyz/fix/mobiledoctabs
Fix tab button layout on mobile
- Loading branch information
Showing
11 changed files
with
266 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
<canvas size="300x100"> | ||
<content> | ||
<widget size="300x100" type="*container.DocTabs"> | ||
<container size="300x32"> | ||
<widget size="236x32" type="*widget.Scroll"> | ||
<container pos="-156,0" size="392x32"> | ||
<widget size="95x32" type="*container.tabButton"> | ||
<text bold pos="4,4" size="87x21">Test1</text> | ||
<widget pos="71,6" size="20x20" type="*container.tabCloseButton"> | ||
<image rsc="cancelIcon" size="iconInlineSize"/> | ||
</widget> | ||
</widget> | ||
<widget pos="99,0" size="95x32" type="*container.tabButton"> | ||
<text bold pos="4,4" size="87x21">Test2</text> | ||
<widget pos="71,6" size="20x20" type="*container.tabCloseButton"> | ||
<image rsc="cancelIcon" size="iconInlineSize"/> | ||
</widget> | ||
</widget> | ||
<widget pos="198,0" size="95x32" type="*container.tabButton"> | ||
<text bold pos="4,4" size="87x21">Test3</text> | ||
<widget pos="71,6" size="20x20" type="*container.tabCloseButton"> | ||
<image rsc="cancelIcon" size="iconInlineSize"/> | ||
</widget> | ||
</widget> | ||
<widget pos="297,0" size="95x32" type="*container.tabButton"> | ||
<text bold color="primary" pos="4,4" size="87x21">Another</text> | ||
<widget pos="71,6" size="20x20" type="*container.tabCloseButton"> | ||
<image rsc="cancelIcon" size="iconInlineSize" themed="primary"/> | ||
</widget> | ||
</widget> | ||
</container> | ||
</widget> | ||
<container pos="240,0" size="60x32"> | ||
<widget size="28x32" type="*widget.Button"> | ||
<rectangle fillColor="button" size="28x32"/> | ||
<rectangle fillColor="rgba(0,0,0,0)" pos="0,2" size="24x28"/> | ||
<image fillMode="contain" pos="4,6" rsc="contentAddIcon" size="iconInlineSize"/> | ||
</widget> | ||
<widget pos="32,0" size="28x32" type="*widget.Button"> | ||
<rectangle fillColor="button" size="28x32"/> | ||
<rectangle fillColor="rgba(0,0,0,0)" pos="0,2" size="24x28"/> | ||
<image fillMode="contain" pos="4,6" rsc="more-horizontal.svg" size="iconInlineSize" themed="default"/> | ||
</widget> | ||
</container> | ||
</container> | ||
<rectangle fillColor="shadow" pos="0,32" size="300x4"/> | ||
<rectangle fillColor="primary" pos="141,32" size="95x4"/> | ||
<widget pos="0,36" size="300x64" type="*widget.Label"> | ||
<text pos="8,8" size="284x21">Another Tab</text> | ||
</widget> | ||
</widget> | ||
</content> | ||
<overlay> | ||
<widget size="300x100" type="*widget.OverlayContainer"> | ||
<widget pos="226,0" size="74x100" type="*widget.Menu"> | ||
<widget size="74x100" type="*widget.Shadow"> | ||
<radialGradient centerOffset="0.5,0.5" pos="-4,-4" size="4x4" startColor="shadow"/> | ||
<linearGradient endColor="shadow" pos="0,-4" size="74x4"/> | ||
<radialGradient centerOffset="-0.5,0.5" pos="74,-4" size="4x4" startColor="shadow"/> | ||
<linearGradient angle="270" pos="74,0" size="4x100" startColor="shadow"/> | ||
<radialGradient centerOffset="-0.5,-0.5" pos="74,100" size="4x4" startColor="shadow"/> | ||
<linearGradient pos="0,100" size="74x4" startColor="shadow"/> | ||
<radialGradient centerOffset="0.5,-0.5" pos="-4,100" size="4x4" startColor="shadow"/> | ||
<linearGradient angle="270" endColor="shadow" pos="-4,0" size="4x100"/> | ||
</widget> | ||
<widget size="74x100" type="*widget.Scroll"> | ||
<widget size="74x136" type="*widget.menuBox"> | ||
<rectangle fillColor="background" size="74x144"/> | ||
<container pos="0,4" size="74x144"> | ||
<widget size="74x29" type="*widget.menuItem"> | ||
<text pos="8,4" size="39x21">Test1</text> | ||
</widget> | ||
<widget pos="0,33" size="74x29" type="*widget.menuItem"> | ||
<text pos="8,4" size="39x21">Test2</text> | ||
</widget> | ||
<widget pos="0,66" size="74x29" type="*widget.menuItem"> | ||
<text pos="8,4" size="39x21">Test3</text> | ||
</widget> | ||
<widget pos="0,99" size="74x29" type="*widget.menuItem"> | ||
<text pos="8,4" size="58x21">Another</text> | ||
</widget> | ||
</container> | ||
</widget> | ||
<widget pos="68,0" size="6x100" type="*widget.scrollBarArea"> | ||
<widget pos="3,0" size="3x73" type="*widget.scrollBar"> | ||
<rectangle fillColor="scrollbar" size="3x73"/> | ||
</widget> | ||
</widget> | ||
<widget pos="0,100" size="74x0" type="*widget.Shadow"> | ||
<linearGradient endColor="shadow" pos="0,-8" size="74x8"/> | ||
</widget> | ||
</widget> | ||
</widget> | ||
</widget> | ||
</overlay> | ||
</canvas> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<canvas size="300x100"> | ||
<content> | ||
<widget size="300x100" type="*container.DocTabs"> | ||
<container size="300x32"> | ||
<widget size="236x32" type="*widget.Scroll"> | ||
<container pos="-156,0" size="392x32"> | ||
<widget size="95x32" type="*container.tabButton"> | ||
<text bold pos="4,4" size="87x21">Test1</text> | ||
<widget pos="71,6" size="20x20" type="*container.tabCloseButton"> | ||
<image rsc="cancelIcon" size="iconInlineSize"/> | ||
</widget> | ||
</widget> | ||
<widget pos="99,0" size="95x32" type="*container.tabButton"> | ||
<text bold pos="4,4" size="87x21">Test2</text> | ||
<widget pos="71,6" size="20x20" type="*container.tabCloseButton"> | ||
<image rsc="cancelIcon" size="iconInlineSize"/> | ||
</widget> | ||
</widget> | ||
<widget pos="198,0" size="95x32" type="*container.tabButton"> | ||
<text bold pos="4,4" size="87x21">Test3</text> | ||
<widget pos="71,6" size="20x20" type="*container.tabCloseButton"> | ||
<image rsc="cancelIcon" size="iconInlineSize"/> | ||
</widget> | ||
</widget> | ||
<widget pos="297,0" size="95x32" type="*container.tabButton"> | ||
<text bold color="primary" pos="4,4" size="87x21">Another</text> | ||
<widget pos="71,6" size="20x20" type="*container.tabCloseButton"> | ||
<image rsc="cancelIcon" size="iconInlineSize" themed="primary"/> | ||
</widget> | ||
</widget> | ||
</container> | ||
</widget> | ||
<container pos="240,0" size="60x32"> | ||
<widget size="28x32" type="*widget.Button"> | ||
<rectangle fillColor="button" size="28x32"/> | ||
<rectangle fillColor="rgba(0,0,0,0)" pos="0,2" size="24x28"/> | ||
<image fillMode="contain" pos="4,6" rsc="contentAddIcon" size="iconInlineSize"/> | ||
</widget> | ||
<widget pos="32,0" size="28x32" type="*widget.Button"> | ||
<rectangle fillColor="button" size="28x32"/> | ||
<rectangle size="0x0"/> | ||
<image fillMode="contain" pos="4,6" rsc="more-horizontal.svg" size="iconInlineSize" themed="default"/> | ||
</widget> | ||
</container> | ||
</container> | ||
<rectangle fillColor="shadow" pos="0,32" size="300x4"/> | ||
<rectangle fillColor="primary" pos="141,32" size="95x4"/> | ||
<widget pos="0,36" size="300x64" type="*widget.Label"> | ||
<text pos="8,8" size="284x21">Another Tab</text> | ||
</widget> | ||
</widget> | ||
</content> | ||
</canvas> |
Oops, something went wrong.